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

"mouseover" and "mouseout" events #112

Open
Dschuli opened this issue Nov 26, 2016 · 5 comments
Open

"mouseover" and "mouseout" events #112

Dschuli opened this issue Nov 26, 2016 · 5 comments

Comments

@Dschuli
Copy link

Dschuli commented Nov 26, 2016

Are "mouseover" and "mouseout" events supported for js-marker-clusterer? Cant find any documentation re supported events.

Thx a lot for any hints?

@Remo
Copy link
Contributor

Remo commented Mar 28, 2017

I'm a bit late, but if you still wonder about this, here's how it works:

var markerCluster = new MarkerClusterer(
  map,
  markers,
  {
    imagePath: '../images/m', 
    onMouseoverCluster: function (clusterIcon, event) { alert('mouse over'); },
    onMouseoutCluster: function (clusterIcon, event) { alert('mouse out'); }
  }
);

You probably have more luck posting such questions in our fork as this repo isn't maintained anymore: https://github.com/gmaps-marker-clusterer/gmaps-marker-clusterer
I've also updated our documentation regarding these two events: https://gmaps-marker-clusterer.github.io/gmaps-marker-clusterer/#reference-options

@Dschuli
Copy link
Author

Dschuli commented Mar 28, 2017

Thanks - in the meantime I created a fork and would definitely prefer a maintained solution. Will take a look at your suggestion.
The other change I needed was to have the zoom-in-on cluster triggered by a double click as I needed the click event for select/deselect functionality

@Remo
Copy link
Contributor

Remo commented Mar 28, 2017

Let me know if there's anything I can do to get you on board of our fork, it would be great if the community would work together on a single fork!

@Dschuli
Copy link
Author

Dschuli commented Mar 28, 2017

Will let you know - is your fork available as npm or athmosphere package?

@Remo
Copy link
Contributor

Remo commented Mar 28, 2017

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