Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

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

Open
jsette opened this issue Dec 7, 2016 · 1 comment

Comments

@jsette
Copy link

jsette commented Dec 7, 2016

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
Copy link

use
infowindow.setPosition(marker.latlng);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants