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 772 forks source link

When zooming is cluster still exists then InfoWindow disappears first time #114

Open jsette opened 7 years ago

jsette commented 7 years ago

I have a sidebar, with a feed of Mapped positions.

When clicking a item, I want to display InfoWindow, I also zoom in. This works fine with Single Markers or if the zoom level is enough to no longer display the cluster.

If I zoom in and still display the cluster, then the InfoWindow will disappear. If I click again, it will display?

$(liTag).click(function() { infowindow.close(); infowindow.setContent($marker.html()); infowindow.setPosition(latlng); infowindow.open(map, marker); map.setZoom(8); map.setCenter(marker.getPosition()); });

Any ideas on how to resolve this issue?

thimmegowdat7 commented 5 years ago

use infowindow.setPosition(marker.latlng);