Changeset 7796 for trunk/src/map/inc/nodemapWL.js
- Timestamp:
- Apr 16, 2010, 5:36:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7793 r7796 36 36 /* 37 37 * Hier zo circles toevoegen. 38 */38 39 39 for(var i=0; i<circleArray.length; i++) { 40 40 map.addOverlay(circleArray[i]); 41 41 } 42 */ 42 43 43 44 var markerClusterer = new MarkerClusterer(map, markerArray); … … 55 56 var latitude = Number(current.latitude[0]); 56 57 var longitude = Number(current.longitude[0]); 57 var circle = drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2);58 //var circle = drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2); 58 59 var marker = new GMarker(new GLatLng(current.latitude[0], current.longitude[0]), {title: current.name[0], icon: greenIcon}); 59 60 60 61 //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map 61 62 GEvent.addListener(marker, 'mouseover', function() { 62 //mouseOverNode(current.id, current.name[0],52.118860692234, 4.5015095076528); 63 mouseOverNode(current.id, current.name[0],current.latitude[0], current.longitude[0]); 63 mouseOverNode(current.id, current.name[0],latitude, longitude); 64 64 }); 65 65 GEvent.addListener(marker, 'click', function() { … … 71 71 72 72 markerArray.push(marker); 73 circleArray.push(circle);73 //circleArray.push(circle); 74 74 return marker; 75 75 } … … 102 102 } 103 103 //Our mouseover function for single nodes. Gives the ID(our own given ID) and the name of the node. 104 function mouseOverNode(id, name, lat , longitude)104 function mouseOverNode(id, name, latitude, longitude) 105 105 { 106 106 overNode = true; 107 107 if(!selected == true) 108 108 { 109 drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2); 110 map.addOverlay(polygon); 109 111 loadXMLDoc("inc/node_info.php?type=single&name="+name+""); 110 112 111 //alert(long);112 113 /* 113 114 *Hieronder verdergaan met dekking
Note:
See TracChangeset
for help on using the changeset viewer.