Index: trunk/extensions/SemanticMaps/Services/OpenLayers/SM_OpenLayersFunctions.js |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | function removeMarkers(markerLayer) { |
94 | 94 | var markerCollection = markerLayer.markers; |
95 | 95 | |
96 | | - for (i in markerCollection) { |
| 96 | + for (var i = 0; i < markerCollection.length; i++) { |
97 | 97 | markerLayer.removeMarker(markerCollection[i]); |
98 | 98 | } |
99 | 99 | } |
\ No newline at end of file |
Index: trunk/extensions/SemanticMaps/Services/OpenStreetMap/SM_OSMFunctions.js |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | function removeOSMMarkers(markerLayer) { |
95 | 95 | var markerCollection = markerLayer.markers; |
96 | 96 | |
97 | | - for (i in markerCollection) { |
| 97 | + for (var i=0; i < markerCollection.length; i++) { |
98 | 98 | markerLayer.removeMarker(markerCollection[i]); |
99 | 99 | } |
100 | 100 | } |
\ No newline at end of file |