Positioning markers over the top of clusters; z-index not working

前端 未结 1 807
遥遥无期
遥遥无期 2021-01-22 16:36

I\'ve got some JSON data populating markers and then clustering using MarkerClusterer. I also have some alert type markers that don\'t cluster on purpose. Could someone please

相关标签:
1条回答
  • 2021-01-22 17:19

    Because clustered markers sit in the overlayMouseTarget pane, you would need to create your own markers in the same pane.

    If you create a custom overlay (http://code.google.com/apis/maps/documentation/javascript/overlays.html#CustomOverlays) and add it to the overlayMouseTarget pane, you should be able to make the markers appear above the clustered markers using the CSS zIndex property.

    0 讨论(0)
提交回复
热议问题