On Jul 17, 2:28 am, "[email protected]" <[email protected]>
wrote:
> This is my code:
>
....
>       latitudes[i] = document.getElementById('latitude'+i).value;
>           longitudes[i] = document.getElementById('longitude'+i).value;
....

Values from DOM elements return strings. GLatLng() expects numbers.
Try:

  latitudes[i] = document.getElementById('latitude'+i).value * 1;
  longitudes[i] = document.getElementById('longitude'+i).value * 1;



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to