GreatDistanceOverlay usage
What is the appropriate syntax for the GreatDistanceOverlay class? I've been unable to get it to draw a line. Also, does it account for crossing the IDL or, if I want a line from Sydney to LA, will it cross the Indian and Atlantic Oceans (instead of the Pacific)?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?It's in the com.modestmaps.extras folder because it's not really supported or finished yet. But one example of basic usage is here:
http://code.google.com/p/dopplr-as3/s...
Look for the overlay.addGreatCircle method. It takes a LineStyle object because I wanted the effect of pen strokes where the line gets thicker in the middle (or at the beginning).
It almost certainly won't work properly with the IDL, that's something that all our code could do with handling better, I think.
In general, with Modest Maps, you should take the marker and overlay code as examples only, and feel free to cut and paste into your own code and hack away to get it right. map.locationPoint is your friend!
I’m undecided
-
Inappropriate?Did some playing with the Great Circle and discovered the following:
a) as with most Vincente distance models, going to the exact opposite point of the Earth will break the calc. This is because the algorithm cannot reduce the bearing to either East or West. However, who ever goes to EXACTLY the opposite point of the globe? This is merely a "watch out" for anyone that first starts playing and wants to see a beautiful line from (30,-90) to (-30,90). ;-)
b) it handles the IDL beautifully!
I’m ecstatic
Loading Profile...



EMPLOYEE
