1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <div id="map" name="map"></div>
<div id="a" align="center" >
<script type="text/javascript">
var Lat = <%=rsSelect("KbAgendaLatitude").value%>;
var Lon = <%=rsSelect("KbAgendaLongitude").value%>;
var map=new GMap2(document.getElementById("map"));
map.enableScrollWheelZoom();
// map.addControl(new GMapTypeControl());
map.addControl(new GSmallMapControl());
var marker = new GMarker(new GLatLng(Lat,Lon));
map.setCenter(new GLatLng(Lat,Lon), 14);
// GEvent.addListener(marker, "click", function() {
// marker.openInfoWindowHtml("hii");});
map.addOverlay(marker);
map.setCenter(new GLatLng(Lat, Lon), 16);
//map.setMapType(G_SATELLITE_MAP);
map.setMapType(G_HYBRID_MAP);
var polyline = new GPolyline([new GLatLng(Lat, Lon),
new GLatLng(Lat, Lon),
new GLatLng( Lat, Lon)], "#3333cc", 10);
map.addOverlay(polyline);
</script> |
Partager