- Timestamp:
- Apr 14, 2010, 10:46:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/overlay.js
r7751 r7759 26 26 }); 27 27 28 //mouseout listener that removes the cirkel once the user moves his mouse off the designated marker 28 29 GEvent.addListener(marker, "mouseout", function() { 29 30 map.removeOverlay(cirkel); 30 31 }); 31 32 32 33 //adds a cirkel when the user clicks on the marker 34 GEvent.addListener(marker, "click", function() { 35 map.addOverlay(cirkel1); 36 }); 33 37 34 38 … … 68 72 69 73 70 // locatie, doorsnee (in meters), kleur omtrek, dikte omtrek, doorzichtigheid opvulling, kleur opvulling, doorzichtigheid.74 // locatie, doorsnee (in meters), kleur omtrek, dikte omtrek, ??, kleur opvulling, doorzichtigheid. 71 75 map.addOverlay(marker); 72 cirkel = new GPolygon.Circle(marker.getLatLng(),range,"#000000",1,1,"#00ff00",0.5) 76 cirkel = new GPolygon.Circle(marker.getLatLng(),range,"#000000",0,1,"#00ff00",0.5) 77 cirkel1 = new GPolygon.Circle(marker.getLatLng(),range,"#000000",0,1,"#00ff00",0.5) 73 78 74 79 } 75 80 } 76 77 //Our mouseover function78 /*function mouseOver(dekking)79 {80 //For now we only post the id(We made ourself in kmlHandler) and the name of the node81 map.addOverlay(GPolygon.Circle(point,500,"#000000",1,1,"#00ff00",0.5));82 //We will replace this function with a httprequest to a php file in the future83 }84 */85 81 86 82
Note:
See TracChangeset
for help on using the changeset viewer.