Changeset 7751 for trunk/src/map/inc/overlay.js
- Timestamp:
- Apr 14, 2010, 9:45:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/overlay.js
r7740 r7751 13 13 if (GBrowserIsCompatible()) { 14 14 map = new GMap2(document.getElementById("mapcanvas")); 15 map.setCenter(new GLatLng(52.162687, 4.493294), 1 2);15 map.setCenter(new GLatLng(52.162687, 4.493294), 14); 16 16 map.setUIToDefault(); 17 17 18 marker = new GMarker( map.getCenter());18 marker = new GMarker(new GLatLng(52.165700, 4.483499)); 19 19 GEvent.addListener(marker, "click", function () { 20 20 marker.openInfoWindowHtml("Test, Test, You suck! Eindelijk, het werkt!!!!"); … … 66 66 // http://econym.org.uk/gmap/eshapes.htm voorbeeld. 67 67 // de locatie van de cirkel 68 var point = new GLatLng(52.162687, 4.493294); 68 69 69 70 // locatie, doorsnee (in meters), kleur omtrek, dikte omtrek, doorzichtigheid opvulling, kleur opvulling, doorzichtigheid. 70 71 map.addOverlay(marker); 71 cirkel = new GPolygon.Circle( point,range,"#000000",1,1,"#00ff00",0.5)72 cirkel = new GPolygon.Circle(marker.getLatLng(),range,"#000000",1,1,"#00ff00",0.5) 72 73 73 74 }
Note:
See TracChangeset
for help on using the changeset viewer.