Have you tried wrapping the LatLng points?

http://code.google.com/apis/maps/documentation/flash/reference.html#LatLng.wrapLatLng


Shlooby wrote:
Just as an update, there seems to be quite a few latitudes and
longitudes that will reproduce this error.
I provided an example for one in particular.  This was using the Map3D
Type;

On Mar 3, 1:02 pm, Shlooby <[email protected]> wrote:
  
Hello Everyone,

I was wondering if anyone else has encountered this issue with the
flash API.

I have a 3d map that I am adding a polyline to, using the following
simplified code to plot a line between two
latitude / longitudes that are about 2 -3 meters apart:

var strokeStyle:StrokeStyle = new StrokeStyle( { color: 0xFF0000,
thickness: 4, alpha: 0.7 } );
var polyLineOptions:PolylineOptions = new PolylineOptions({geodesic:
true, strokeStyle: strokeStyle});
var pointArray:Array = new Array(new LatLng(37.816821, -122.4781), new
LatLng(37.816846, -122.4781));
polyline = new Polyline(pointArray, polyLineOptions);
map.addOverlay(polyline);
trace("Distance = " + new LatLng(37.816821,
-122.4781).distanceFrom(new LatLng(37.816846, -122.4781)));

The resulting polyline wraps around the entire earth and back to the
destination point instead of drawing the 2-3 meter line as intended.

Very Strange,
    

  

--
You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to