Andrew, thanks for your quick and comprehensive answer.

The documentation (http://code.google.com/intl/en/apis/maps/
documentation/polylinealgorithm.html) is a bit vague on the subject:
"The endpoints of a polyline should often be set to the largest
encoded level, to ensure that the endpoints will appear in all zoom
levels and the line is drawn correctly."

I took this to mean that other values are possible. It would be
phrased better as "...must always be set...".

Kind regards
wolf

Andrew Leach schrieb:
> On May 9, 4:24 pm, wolf <[email protected]> wrote:
> >
> > If the polyline is encoded with start/end points always visible (level
> > P for standard map with 18 zoom levels and factor 2), it is displayed,
> > otherwise not.
>
> A vertex defined as level P will appear on maps at level zero and
> closer. A point at level B will appear on maps at zoom 14 and closer.
> So you might think that making the end points "B" (for the sake of
> argument) will mean that the line is only plotted at zoom 14 and
> closer.
>
> But it doesn't work like that: the API assumes that if you are adding
> a line, you want it to appear; otherwise there would be no point in
> adding it. So the calculations require that the end points are coded
> P.
>
> If you want the line not to appear at zooms below some level, then you
> need either to implement some sort of overlay manager which can handle
> polylines or simply use a zoomend listener to show or remove the line
> depending on the zoom level.
>
> --
> 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.

-- 
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.

Reply via email to