- Timestamp:
- Apr 17, 2010, 12:55:22 AM (15 years ago)
- Location:
- trunk/src/map/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7796 r7798 98 98 */ 99 99 100 map.removeOverlay(polygon);101 100 } 102 101 } … … 107 106 if(!selected == true) 108 107 { 109 drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2); 108 109 drawCircle(latitude, longitude, 2.0, "#6C3", 1, 0.75, "#0F0",.2, 200); 110 110 map.addOverlay(polygon); 111 111 112 loadXMLDoc("inc/node_info.php?type=single&name="+name+""); 112 113 … … 132 133 //Make 'markers' array (containing gmarkers) into an array containing only the titles(names) of the markers 133 134 var markerTitles = new Array; 135 var markerLatLngs = new Array; 136 134 137 for(var i=0; i<markers.length; i++) { 138 135 139 markerTitles.push(markers[i].marker.getTitle()); 140 markerLatLngs.push(markers[i].marker.getLatLng() ); 136 141 } 137 142 143 144 145 for (var i=0; i<markerLatLngs.length; i++) 146 { 147 latLng = String(markerLatLngs[i]); 148 149 pos = latLng.indexOf(','); 150 pos2 = latLng.length-1; 151 152 var latitude = Number(latLng.substring(1, pos) ); 153 var longitude = Number(latLng.substring(2 + pos, pos2) ); 154 155 156 drawCircle( latitude, longitude,2.0, "#6C3", 1, 0.75, "#0F0",.2); 157 158 159 160 map.addOverlay(polygon); 161 162 } 163 138 164 var markerTitleSerialized; 139 165 … … 172 198 for(var i=0; i<markers.length; i++) { 173 199 markerTitles.push(markers[i].marker.getTitle()); 200 174 201 } 175 202 … … 191 218 192 219 loadXMLDoc("inc/node_info.php?type=cluster&markers="+a_php+"&sel=selected") 220 } 221 222 function mouseOutCluster(markers) 223 { 224 selected = false; 225 map.removeOverlay(polygon); 226 map.removeOverlay(polygon); 227 228 //TODO DELETE ALL CIRCLES 229 230 /* 231 for (var i=0; i<markers.length; i++) { 232 233 map.removeOverlay(polygon[i]); 234 235 } 236 */ 237 238 193 239 } 194 240 -
trunk/src/map/inc/overlay.js
r7793 r7798 15 15 16 16 polygon = new GPolygon(Cpoints, strokeColor, strokeWidth, strokeOpacity, fillColor, fillOpacity); 17 18 17 19 return polygon; 18 20 }
Note:
See TracChangeset
for help on using the changeset viewer.