Changeset 20684


Ignore:
Timestamp:
2011/03/17 17:14:42 (10 years ago)
Author:
coelacanth
Message:

#1077 [管理画面]SHOPマスタ>地図設定

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/basis/index.tpl

    r20587 r20684  
    2626<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> 
    2727<script type="text/javascript">//<![CDATA[ 
     28var map; 
     29 
     30 
    2831$(function() { 
    2932    var geocoder = new google.maps.Geocoder(); 
     
    7578            mapTypeId: google.maps.MapTypeId.ROADMAP 
    7679        }; 
    77         var map = new google.maps.Map($("#maps").get(0), mapOptions); 
     80 
     81        if (!map) 
     82        { 
     83            map = new google.maps.Map($("#maps").get(0), mapOptions); 
     84        } 
     85        else 
     86        { 
     87            map.panTo(latlng); 
     88        } 
    7889        var marker = new google.maps.Marker({map: map, position: latlng}); 
    7990        marker.setDraggable(true); 
Note: See TracChangeset for help on using the changeset viewer.