-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Add support for not clustering a specific marker #17
Comments
I think that for this case it is more appropriate behavior to just zoom the map and target markers will be "unclustered". |
Hey, thanks for your quick reply! I agree that that's a way to get the markers unclustered. But picture this scenario: You tap one of the items on the list on the left and the map is zoomed and centered to that marker. But there are many clusters around, how does the user know where the marker he selected is? It's not standing out from the rest, he doesn't know where to zoom. You could set a high zoom level to make sure the marker is not inside a cluster, but that doesn't solve it for good because it will get clustered again when the users zooms out. I'd say that the way to solve this is to have some way of saying "don't cluster this marker" so the user can see it after he selected it from somewhere else. What I'm doing right now is removing the marker from the clusterer and adding it directly to the map. Anyway, thanks for this awesome project! |
As I agree that zooming out will show the marker unclustered, this is not the desired effect we are looking for. Take for instance I have a geolocation marker that gets placed when you click a button. It will pan, zoom and show the market. It also updates as you move. When I zoom out, this geolocation marker then gets grouped into a cluster. I would like this marker to be above every other marker ( which I set with zIndex) but also not cluster, which kind of defeats the purpose of having the location marker. @gabrielmaldi how are you removing the marker from the cluster its self, and adding it directly to the map? |
I'm more or less running into the same issue as @gabrielmaldi and I would greatly appreciate it if this feature was implemented! |
@logicandluck like this: markerClusterer.removeMarker(marker);
marker.setMap(map); What I'm not doing is adding the marker back to the cluster because: when would you do it? |
It's common to have a list of places apart form the map and to let the user click one of those. When that happens we need to "uncluster" a specific marker in order to make sure it is visible on its own.
Thanks!
The text was updated successfully, but these errors were encountered: