googlearchive/js-marker-clusterer

googlemap clustered markers do not expand well in Satellite view

almasri9 opened this issue · 2 comments

The clustered markers are not expanding well in Satellite view while they expand well in Map view.

To reproduce it:

  1. goto: http://www.alaqarie.com/map/show-map (Map view)
  2. make sure the selected Country is UAE
  3. click on the cluster (11), two smaller groups are shown (8) and (2)
  4. Keep on clicking on the groups until all the markers are shown (This is good).
  5. Now, repeate steps 1-4 but after step #1 select (Satellite view)
  6. Notice that expanding the clusters does not expand all the way to show all the markers!

I contacted google support, but they asked me to contact you because you are the owner of the related API.

Please let me know how to fix this issue.

Thanks.

This issue has being reported in the Maps Platform Technical Support.
It looks like while in "Satellite" view, after a certain amount of "zoom" level the marker cluster stays, not being able to see the individual markers.

Could you give us any feedback on this?

@betofarina @almasri9
The problem is the satellite view being limited to a lower zoom level than map view.
I worked around that issue by setting maxZoom to 20 instead of 21 (which worked on map view) .
Weirdly enough, map.mapTypes[map.getMapTypeId()].maxZoom was not correct and returned 22 even for 'satellite'.