views:

24

answers:

0

Hi. I'm using the Google Maps API v3 directions service to calculate a route between two points. There are a lot of markers on my map and I want the polyline of the route to overlap the markers, so that the route is always visble. How can I do that?

I tried to use PolylineOptions.zIndex, but this z-index value is calculated with regards to other polylines, omitting the markers.

So how do I add the right z-index value to my route?