Thank you Andrew for your help. I'm sorry I didn't post any code : I thought it would be irrelevant since it very 'standard'. Most of the logic is in c++ (codegear c++ builder) : I simply calculate the distance between every two consecutive points, if it is superior to 1 km, I add the coordinates to a string (google maps api javascript code) that I execute in the browser component. The javascript code is similar (actually exactly the same) to the sample code used in the API documentation.
I'll take a look at the encoding algorithm and see if I could convert it to c++ code. Sorry again for not posting the code: I thought that since the code was very simple, it would be irrelevant to post it. Thank you Best Regards On 18 mai, 00:26, Andrew Leach <[email protected]> wrote: > On May 17, 8:10 pm, "[email protected]" > > <[email protected]> wrote: > > > My "problem" is that I use Virtual Earth Map inside my application and > > it renders the polyline perfectly and quickly with no slow script > > error, so I thought I was doing something wrong (the poly is composed > > of a maximum of 800 points!!). > > You may be doing something wrong. How can we tell? 800 points isn't > very many for a polygon -- here's > one:http://www.achurchnearyou.com/parishmap.php?pcode=21/445. > It's encoded, which means that it doesn't have 800 points at every > zoom level. Responsiveness isn't too bad. > > > Besides, I wonder if creating a KML file on the fly and 'feeding it' > > to the Map wouldn't be quicker and avoid such problems ? > > I very much doubt it. There's quite a bit more data with KML to > transfer, for a start; and every zoom level will use all 800 points, > which is overkill. > > Perhaps if you could condescend to let us see what you're doing, you > might get some concrete > advice.http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > andhttp://groups.google.com/group/Google-Maps-API/web/why-including-a-li... > > Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
