googlearchive / js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Apache License 2.0
1.28k stars 775 forks source link

googlemap clustered markers do not expand well in Satellite view #151

Open almasri9 opened 5 years ago

almasri9 commented 5 years ago

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.

betofarina commented 5 years ago

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?

JanGross commented 5 years ago

@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'.