Hi Mike, thanks for your answer. I know that this number of lines would make the page slow, that's why I'm asking for some guidelines.
Just a couple of remarks. I need to provide the info for some motorways (ie, all the ones between London and Birmingham). I do know in advance what those lines will be (7 motorways in both directions, though segmented, thus froming thiose 150 polylines). I've just done a test drawing 150 Polylines (not GDirections) on a map and it works good enough (your example almost collapses in my ie6 at the office, it truly is slow as hell). But the Polylines I've drawn are very simple (with just origin and destiny) and I will have much more vertexs (from 10 to 50 per line I guess, depending on the amount of kms and the motorway configuration). I'll change my example to draw those 150 polylines with multiple vertexs to see how it works. I'm coming to the conclusion that I'll need to extract the 150 polylines from 150 GDirections and work deirectly with them to make it a bit faster. Am I right here? One question I'd like to know about drawing the polylines. Encoded polylines are faster than non encoded ones??? If so, I'll go into the effort of encoding the polylines, but I won't do it if it's not worth it. Thanks. On 2 oct, 12:58, Mike Williams <[EMAIL PROTECTED]> wrote: > Be aware that displaying 150 polylines simultaneously will make the map > rather sluggish, particularly in slow browsers like MSIE. How sluggish > it gets depends on many factors, such as the average number of vertices > in those polylines, and the hardware, O/S and Internet connection speed > and browser type. > > Before committing a lot of effort into your project, try doing a quick > test with 100-150 polylines that are representative of the data that > you're going to be using, and see how slow it goes. For the purposes of > such a test, you don't need real data. 100 copies of the same polyline > will suffice. > > In fact, let me do that for you: > http://econym.org.uk/temp/test_dirns100.htm > plots 100 copies of the route from Manchester to Liverpool on top of > each other. > > Try dragging and zooming the map. Notice that the responsiveness in the > Google Chrome browser is quite acceptable, but in MSIE the movements are > very slow and jerky. Other browsers come in somewhere between those two > extremes. > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
