jawj / OverlappingMarkerSpiderfier

Deals with overlapping markers in Google Maps JS API v3, Google Earth-style
http://blog.mackerron.com
838 stars 237 forks source link

How to keep spider markers showing after clicking away #178

Closed aharpervc closed 1 year ago

aharpervc commented 1 year ago

Hello & thanks for this library, it's a great improvement on the default maps/cluster behavior.

I'm curious how I can keep the spidering "open" even when clicking away from a marker. Currently when clicking a spiderfied marker (or clicking away from the markers onto the map) the spiderfication will "close" back to a single marker. I'd prefer it stay spiderfied (and ideally be spiderfied by default rather than than clicking to open).

I'm unsure how to do that. Thoughts?

aharpervc commented 1 year ago

Of course right when I post this question I see this in the readme... 🤦‍♂️

keepSpiderfied (default: false)

&

ignoreMapClick (default: false)

So maybe my only remaining question is about pre-opening the spiderfications?

jawj commented 1 year ago

So maybe my only remaining question is about pre-opening the spiderfications?

This is a much-requested feature (see issue #2), but unfortunately the way the library works means it's not really possible.

aharpervc commented 1 year ago

Gotcha. Thanks for clarifying! Not being able to pre-open isn't a dealbreaker anyway.