- Timestamp:
- Apr 17, 2010, 5:03:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7807 r7808 207 207 208 208 209 210 var polygons_on_map_array = new Array; 209 211 for (var i=0; i<markerLatLngs.length; i++) 210 212 { … … 218 220 219 221 220 drawCircle( latitude, longitude,2.0, "#6C3", 1, 0.75, "#0F0",.2);221 222 223 224 map.addOverlay(polygon );222 polygons_on_map_array.push( drawCircle( latitude, longitude,2.0, "#6C3", 1, 0.75, "#0F0",.2) ); 223 224 225 226 map.addOverlay(polygons_on_map_array[i]); 225 227 226 228 } … … 247 249 function mouseOutCluster(markers) 248 250 { 251 252 249 253 deSelect(); 250 map.removeOverlay(polygon); 251 map.removeOverlay(polygon); 254 252 255 253 256 //TODO DELETE ALL CIRCLES … … 271 274 function deSelect() 272 275 { 276 277 map.removeOverlay(polygon); 278 for(var i=0; i<polygons_on_map_array.length; i++) 279 { 280 281 var currentpolygon = polygons_on_map_array[i]; 282 map.removeOverlay(polygon); 283 } 284 285 273 286 selected = false; 274 287 loadXMLDoc("inc/node_info.php"); 275 288 markerSelected.setImage("../img/sleutelGroen.png"); 276 289 277 for(var i=0; i<polygons_on_map_array.length; i++) 278 { 279 var currentpolygon = polygons_on_map_array[i]; 280 map.removeOverlay(polygon); 281 } 290 282 291 283 292 }
Note:
See TracChangeset
for help on using the changeset viewer.