Paul Alex
Paul Alex

Reputation: 30

Google maps v3 infobox zIndex not functional

I have a map and an marker on it. When i click on the marker a pop up (infobox.js) apeares that have this properties (pane: "floatPane" and zIndex: 1) and my Marker has zIndex 2. When i click on the marker the pop up apeares uppon the marker even if it has the zIndex smaller. I know that if i set pane to mapPane it will be under, but i need it to floatPane to be uppon other markers that are on the map. Why the zIndex its no working? I've put some alerts with the zIndex to be sure that they are like i think and they are.

Upvotes: 0

Views: 1863

Answers (1)

Marcelo
Marcelo

Reputation: 9407

The zIndex property is only useful between objects that are on the same pane. The floatPane, is above all overlays, as stated in the documentation:

floatPane (Node) This pane contains the info window. It is above all map overlays. (Pane 6).

Markers are overlays and they are held on:

overlayImage (Node) This pane contains the marker foreground images. (Pane 3).

Upvotes: 5

Related Questions