If you have the encoding of the polyline, you *might* be able to decode it for the information you're looking for. If you don't have the encoding, I don't think you're able to get it through the API, so you wouldn't be able to do it.
In the encoding, there is the 'levels' item which has the information of which zoom level each point is shown. However, it seems that these values are only suggestions to the Google API as to how to draw the vertices in different browsers, so YMMV. On Nov 25, 7:02 am, Vitor Costa <[EMAIL PROTECTED]> wrote: > Hi Larry, > > Thanks for the reply. > But that is not actually what I am trying to do. > > In my case, the polyline is entirely shown in the map. > The thing is, since the map is really zoomed out, not all the vertexes > are actually being drawn. > Only if you start to zoom in, the more detailed ones start to appear. > > If you look at the documentation for encoded polyline, you will find > the following: > > "An encoded polyline also stores information specifying the precision > when drawing the polyline. This information allows the map to ignore > drawing segments at zoom levels where that precision is not necessary. > Each point in an encoded polyline stores this information in a levels > string which is also encoded alongside the encoded points." > > So what I would like to get from the polyline are only the vertexes > that are inside the precision of the zoom level that the map is > showing. > Does anyone know if this is possible?? > > Thanks in advance, > Vitor. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
