Chris,
Ref your alternative code: Are you saying that using two single-
dimension arrays is more efficient than one two-dimensional array?
Unless it is something idiosyncratic to javascript I am not sure that
makes sense. Also using a push, hence messing with the array
structure itself seems like it would introduce a bunch of overhead.
(These are two separable issues, of course.)
This is what I am doing now -- two dimensional, fixed size array:
var flightTrackCoordinates = new Array(myPoints.length);
for(var i=0, j=myPoints.length; i<j; i++){flightTrackCoordinates[i] =
new google.maps.LatLng(myPoints[i][0],myPoints[i][1])};
bratliffe,
When you say "Requiring every point of every poly to execute a "new
google.maps.LatLng()" constructor is insane." are you implying that
there is an alternative?
TIA
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.