On Dec 18, 3:55 pm, Alexandre Dube <[email protected]> wrote: > > [A] == trails > [B] == trail conditions (i.e. snowy) > > Both line data come from different databases, they are not the same (so > I can't just change the color of [A] trails, I really need to add larger > [B] trails to emulate an "highlight" over the [A] trails) > > When zooming, [A] features get destroyed and replaced by other ones > (simplified) and are rendered on top of [B] trail conditions lines... > > It could be simple to remove/add [B] again after [A] redrawn as Marcelo > proposed, but I wonder if there is a better way to do so ?
If you have a wide line showing the trail [A], and a narrow line indicating the conditions [B] on top of it (so it shows as a stripe down the middle of the trail), would it be acceptable to use an encoded polyline for A so it didn't have to be removed on a zoom? The level of detail shown is automatically controlled, and you just need to redraw B. Leaving A on the map and re-drawing B on top should achieve the result you want. On the other hand, Marcelo's solution is nice and simple. 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.
