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

source: OpenPNE/branches/kunitada/prj_googlemap/webapp/modules/pc/templates/h_googlemap.tpl @ 1567

Last change on this file since 1567 was 1567, checked in by kunitada, 15 years ago

googlemapコマド iframe形式でできた

File size: 844 bytes
Line 
1<script src="http://maps.google.co.jp/maps?file=api&amp;v=2&amp;key=({$smarty.const.GOOGLE_MAPS_API_KEY})" type="text/javascript"></script>
2<script type="text/javascript">
3<!--
4function load() {
5    if (GBrowserIsCompatible()) {
6        var point = new GLatLng(({$x}), ({$y}));
7        var zoom = ({$z});
8
9        var map = new GMap2(document.getElementById("map"));
10        map.addControl(new GSmallMapControl());
11        map.addControl(new GMapTypeControl());
12        map.setCenter(point, zoom);
13
14        var marker = new GMarker(point);
15        map.addOverlay(marker);
16        GEvent.addListener(marker, "click", function() {
17            marker.openInfoWindowHtml(html);
18        });
19    }
20}
21//-->
22</script>
23<body onLoad="load()" onUnload="GUnload()">
24<div id="map" style="width: 410px; height: 320px"></div>
25</body>
Note: See TracBrowser for help on using the repository browser.