Changeset 7740
- Timestamp:
- Apr 13, 2010, 7:54:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/overlay.js
r7710 r7740 8 8 var pos; 9 9 var point; 10 var range = 500; 10 11 11 /*12 12 function nodeAdd() { 13 13 if (GBrowserIsCompatible()) { … … 21 21 }); 22 22 23 //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map 24 GEvent.addListener(marker, "mouseover", function() { 25 map.addOverlay(cirkel);; 26 }); 27 28 GEvent.addListener(marker, "mouseout", function() { 29 map.removeOverlay(cirkel); 30 }); 23 31 24 32 33 25 34 26 35 GPolygon.Shape = function(point,r1,r2,r3,r4,rotation,vertexCount, strokeColour,strokeWeight,Strokepacity,fillColour,fillOpacity,opts,tilt) { … … 56 65 57 66 // http://econym.org.uk/gmap/eshapes.htm voorbeeld. 67 // de locatie van de cirkel 58 68 var point = new GLatLng(52.162687, 4.493294); 59 map.addOverlay(GPolygon.Circle(point,500,"#000000",1,1,"#00ff00",0.5)); 69 // locatie, doorsnee (in meters), kleur omtrek, dikte omtrek, doorzichtigheid opvulling, kleur opvulling, doorzichtigheid. 60 70 map.addOverlay(marker); 71 cirkel = new GPolygon.Circle(point,range,"#000000",1,1,"#00ff00",0.5) 61 72 62 73 } 63 74 } 64 75 76 //Our mouseover function 77 /*function mouseOver(dekking) 78 { 79 //For now we only post the id(We made ourself in kmlHandler) and the name of the node 80 map.addOverlay(GPolygon.Circle(point,500,"#000000",1,1,"#00ff00",0.5)); 81 //We will replace this function with a httprequest to a php file in the future 82 } 65 83 */ 66 84 … … 69 87 70 88 89 90 91
Note:
See TracChangeset
for help on using the changeset viewer.