- Timestamp:
- Apr 16, 2010, 4:31:42 PM (15 years ago)
- Location:
- trunk/src/map/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7786 r7793 4 4 var marker_hash = {}; 5 5 var markerArray = new Array(); 6 var circleArray = new Array(); 6 7 var xmlhttp; 7 8 var targetDiv = "infotop"; … … 36 37 * Hier zo circles toevoegen. 37 38 */ 39 for(var i=0; i<circleArray.length; i++) { 40 map.addOverlay(circleArray[i]); 41 } 38 42 39 43 var markerClusterer = new MarkerClusterer(map, markerArray); … … 49 53 function addMarker(current, i) { 50 54 var id = current.id; 55 var latitude = Number(current.latitude[0]); 56 var longitude = Number(current.longitude[0]); 57 var circle = drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2); 51 58 var marker = new GMarker(new GLatLng(current.latitude[0], current.longitude[0]), {title: current.name[0], icon: greenIcon}); 59 52 60 //Added mouseover listener that calls on our mouseOver function when the mouse moves over a marker on the map 53 61 GEvent.addListener(marker, 'mouseover', function() { … … 63 71 64 72 markerArray.push(marker); 73 circleArray.push(circle); 65 74 return marker; 66 75 } … … 104 113 *Hieronder verdergaan met dekking 105 114 */ 106 drawCircle(lat, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2);115 107 116 } 108 117 } … … 151 160 //Our click function for Cluster nodes. 'markers' is an array containing all markers within the cluster 152 161 function clickCluster(markers) 153 { 162 { 163 if(selected == true) 164 deselect(); 165 154 166 //Let the rest of the program know that something is selected 155 167 select(); -
trunk/src/map/inc/overlay.js
r7778 r7793 15 15 16 16 polygon = new GPolygon(Cpoints, strokeColor, strokeWidth, strokeOpacity, fillColor, fillOpacity); 17 map.addOverlay(polygon);17 return polygon; 18 18 }
Note:
See TracChangeset
for help on using the changeset viewer.