ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 639


Ignore:
Timestamp:
Nov 8, 2006, 4:31:24 PM (14 years ago)
Author:
kanbe
Message:

update Google Map v1 -> v2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/kijiji/2_4/webapp/modules/pc/templates/inc_kijiji_map.tpl

    r199 r639  
    4848({/foreach})
    4949
    50 <script src="http://maps.google.co.jp/maps?file=api&v=1&key=({$api_key})" type="text/javascript"></script>
     50<script src="http://maps.google.co.jp/maps?file=api&v=2&key=({$api_key})" type="text/javascript"></script>
    5151<script type="text/javascript">
    5252//<![CDATA[
     
    5656}
    5757if (GBrowserIsCompatible()) {
    58     gme_map = new GMap(document.getElementById("map"));
    59         gme_map.centerAndZoom(new GPoint(({$ex}),({$ey})), ({$ez}));
     58    gme_map = new GMap2(document.getElementById("map"));
     59        gme_map.setCenter(new GLatLng(({$ey})),({$ex}), ({17-$ez}));
    6060        gme_map.addControl(new GSmallMapControl());
    61         gme_map.addControl(new GMapTypeControl());
     61        gme_map.addControl(new GMapTypeControl(true));
    6262({if $mapw > 300})
    6363        gme_map.addControl(new GScaleControl());
     
    117117        gme_markers.push(point);
    118118        var f = function(){
    119                 gme_map.centerAtLatLng(new GPoint(lng,lat));
    120119                marker.openInfoWindowHtml(buildInfoHtml({$key})(point));
    121120        };
Note: See TracChangeset for help on using the changeset viewer.