Dario, What your asking to do isn't too difficult.
Basically you can create a custom overlay(sprite) which will draw each of the lines itself, or have various child Shape objects which draw the individual lines. Take a look at this thread for a discussion of overlay performance and examples on how to do this type of grouping. The examples is with markers, but should be good enough to get you started. http://groups.google.com/group/google-maps-api-for-flash/browse_thread/thread/52dc36c1a82ba119/22324304b29a1aed?hl=en&lnk=gst&q=overlay+performance#22324304b29a1aed Your custom overlay will have a method called (positionOverlay) whenever the map is zoomed or panned. If the map has just been panned, often the operation is as simple as setting the x and y value of the overlay based on some translation. If the map has been zoomed, you'll want to re-draw everything. You know how to convert latLng points into pane cordinates using the pane that you register with the custom overlay. It has methods specifically for this purpose. I realize this is pretty vague, so let me know if you need more details. On Mar 20, 6:55 am, Dario <[email protected]> wrote: > Hi Ian, > > thanks for your time :). The amount of lines will be around 60-100 per > flight. The application shows anywhere in between 0 to approx. 50 > flights at a time, so that could be 5000 lines. I'm pretty confident > the PolyLine is too heavy for this kind of purpose. It's a pretty CPU- > intensive app, and we need to be aware of frame-drops. > > What I would like to do, is have one shape which represents the world > on which I draw the tracks (lat/long) when they are changed, but I > want the scaling and positioning to be controlled by the map, or, a > few pointers on how to adjust the scale and position of the shape when > the map is panned or zoomed. > > thanks, > > Dario --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
