jawj / OverlappingMarkerSpiderfier

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

Doesn't work using RichMarker #97

Open Torone opened 9 years ago

Torone commented 9 years ago

I'm using Google Maps RichMarker and it was nice to implement Spiderfier too but unfortunatly it doesn't work.

It will be really nice to extend it to let it work using RichMarker as well.

It works nice with Marker and also with MarkerWithLabel.

shahinlotfi commented 8 years ago

I am able to use it with RichMarker. It isn't without issues.

for (var i = 0; i < waypts.length; i ++) { var marker = new RichMarker({ position: waypts[i].location, map: map, draggable: false, flat: true, anchor: 5, content: '<div class="dot-marker"><div>' }); oms.addMarker(marker); }

vibesharing commented 7 years ago

Hi, I used the @shahinlotfi solution, I managed to combined both, but when I click on the overlapping marker, the markers split and disappear just after, have you found a solution to prevent this ?

msqsoft commented 7 years ago

oms.addListener('unspiderfy', function (markers) { markers.forEach(function (marker) { marker.setOptions({ zIndex: marker.mIndex }); }); });

Please try this.

sherifzaki commented 7 years ago

Hi, I can't get richmarker working Can you please provide a full example ?