Search code examples
javascriptgoogle-maps-api-3google-maps-markersmarkerclusterer

Google Maps: Render marker above markerclusterer


I have a set of markers that get clustered on my map. Another set of markers are displayed individually, and i happen to need these to be displayed above the clusters. I have tried setting zIndex in the clusters options object, lower than that of the 2nd set of markers, but to no avail. Any idea how to go about this?


Solution

  • As far as I know this can't be done. The clusters reside in higher pane than the marker image.

    https://developers.google.com/maps/documentation/javascript/reference#MapPanes