On Aug 13, 3:22 pm, Fraser <[email protected]> wrote:
>
> the line mentioned ********* is where i am getting errors is this the
> correct way to access my array of lat lons ?

No.

For/in is used to enumerate properties of an object. An array is an
Array object, but you can't necessarily enumerate its elements as
properties. And prototype.js has been known to do horrible things
which can break for/in as well.

The foolproof way is "for (i=0;i<points.length;i++)" so that points[i]
does use i as a counter index and points[i] is a GLatLng element in
the array.

-- 
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