Polyline over marker

456 views
Skip to first unread message

Martin Volek

unread,
Aug 31, 2011, 5:54:30 AM8/31/11
to google-map...@googlegroups.com
Hi,
is it possible to show a polyline over markers on a map? I'm using Google Maps JavaScript API V3. I tried to set zIndex but in doesn't change anything.

Thanks

John Cleveland

unread,
May 19, 2012, 11:36:20 AM5/19/12
to google-map...@googlegroups.com
Has anyone out there found a solution to this?  I have very explicitly changed the zIndex property of polylines to be greater than the zIndex property of markers and the markers still sit over the polylines.  Varying zIndex's of different polylines does work relative to other polylines, but not polylines vs. markers.  I am assuming that all polylines are placed on a different "canvas layer" than markers?

Enoch Lau (Google Employee)

unread,
May 22, 2012, 3:01:08 AM5/22/12
to google-map...@googlegroups.com
Yes that's right, it's not possible. Feel free to file a feature request if you'd like to be able to place polylines over markers: http://code.google.com/p/gmaps-api-issues/issues/list

Enoch
Reply all
Reply to author
Forward
0 new messages