jawj / OverlappingMarkerSpiderfier-Leaflet

Deals with overlapping markers in the Leaflet maps API, Google Earth-style
253 stars 68 forks source link

mouseover instead of or in addition to click? #12

Open chorton opened 10 years ago

chorton commented 10 years ago

Hi there,

Is it possible to use a mouseover listener instead of or even in addition to a click listender?

I'd like to be able to have infowindows open on mouseover.

solsticedhiver commented 6 years ago

I want this too. Click on a marker to open a spider and then hover the markers that show up tooltip for their content.

Nixo76 commented 5 years ago

Are there any news? is there a way to detect if a marker is a "spider-marker" that spidify other markers?

jawj commented 5 years ago

Check the README — can you not use the spider_format event to set this up?

magicmb commented 4 years ago

Bugger! Just saw this now after investigating time on my own code to style stackedMarkers. I didn't realise this was also available for OverlappingMarkerSpiderfier-Leaflet and simply assumed it was just for the OMS for Google Maps API v3 as it's mentioned in docs for the latter and not on the Leaflet version 😕

UPDATE: Just checked the oms.js cdn files for both versions and performed a quick search for keywoard: markerStatus and this produced hits on the OMS for Google Maps API v3 file (see code snippet below) but not in OverlappingMarkerSpiderfier-Leaflet

_Class['markerStatus'] = {
      'SPIDERFIED': 'SPIDERFIED',
      'SPIDERFIABLE': 'SPIDERFIABLE',
      'UNSPIDERFIABLE': 'UNSPIDERFIABLE',
      'UNSPIDERFIED': 'UNSPIDERFIED'
    };

Perhaps you confuse the Leaflet version with Google v3 in your previous comment?

Check the README — can you not use the spider_format event to set this up?