- Timestamp:
- Apr 17, 2010, 4:34:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/nodemapWL.js
r7805 r7806 136 136 //Make 'markers' array (containing gmarkers) into an array containing only the titles(names) of the markers 137 137 var markerTitles = new Array; 138 var markerLatLngs = new Array;138 139 139 140 140 for(var i=0; i<markers.length; i++) { … … 199 199 //Make 'markers' array (containing gmarkers) into an array containing only the titles(names) of the markers 200 200 var markerTitles = new Array; 201 var markerLatLngs = new Array; 202 201 203 for(var i=0; i<markers.length; i++) { 202 markerTitles.push(markers[i].marker.getTitle()); 204 markerTitles.push(markers[i].marker.getTitle()); 205 markerLatLngs.push(markers[i].marker.getLatLng() ); 206 } 207 208 209 210 for (var i=0; i<markerLatLngs.length; i++) 211 { 212 latLng = String(markerLatLngs[i]); 213 214 pos = latLng.indexOf(','); 215 pos2 = latLng.length-1; 216 217 var latitude = Number(latLng.substring(1, pos) ); 218 var longitude = Number(latLng.substring(2 + pos, pos2) ); 219 220 221 drawCircle( latitude, longitude,2.0, "#6C3", 1, 0.75, "#0F0",.2); 222 223 224 225 map.addOverlay(polygon); 203 226 204 227 }
Note:
See TracChangeset
for help on using the changeset viewer.