Hy, we solved our polyline problems (over 50.000 encoded polylines, millions of points) that way:
- splitting all (!) polylines in short parts of 100-300 points - the lenght depends on your prefered zoomlevel and quality of your data - encode them - store the encoded code (only the strings) in your database - store the points of each polyline in the database, each point has an id of his polyline record - each time the map is moved, look which points are visible, get the encoded polyline strings - write some code which handles which polyline is visible and was loaded for older mapmove this works good only for some zoom levels, if your need different levels try splitting in bigger or smaller parts for each level you need IE is slow, on older machines to slow. For optimizing Javascript for IE you find here some tipps http://blogs.msdn.com/ie/archive/2006/08/28/728654.aspx You can see the algorithm (Javascript is optimzed for faster loading, without optimizing > 500kB Code) in action on http://www.wanderservice-schwarzwald.de regards Michael On 19 Sep., 17:26, mischl <[EMAIL PROTECTED]> wrote: > hello all > > found only a few information about this topic here in the forum.. > > i have 200 markers organized with markermanager on a map and would > like to add about 50 polylines on it. i have tested it with about 10 > and looks ok. > if i draw 50 lines, should i add them like now with > map.addOverlay(polyline); or is there a better way, something like a > manager? > > thanks for any hint --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
