I am trying to plot 200 locations on map using open street map layer. I have stored all addresses in array. I am running the loop but my code doesn't plot more than 9 locations on map. My code is: <body background-color="green"> <script>
var address = ['address1','address2'------'address200']; for (i = 0; i< 200; i++) { geocoder.geocode( { 'address': address[i]}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var feature = new OpenLayers.Feature.Vector(
new OpenLayers.Geometry.Point( results[0].geometry.location.lng(),results[0].geometry.location.lat()).transform(epsg4326, projectTo),{description:'This is the value of
} }); } map.addLayer(vectorLayer); </script> |