OverlappingMarkerSpiderfier icon indicating copy to clipboard operation
OverlappingMarkerSpiderfier copied to clipboard

Doesn't work using RichMarker

Open Torone opened this issue 10 years ago • 4 comments

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.

Torone avatar Aug 20 '15 11:08 Torone

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); }

shahinlotfi avatar Jul 04 '16 23:07 shahinlotfi

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 ?

vibesharing avatar Jan 16 '17 09:01 vibesharing

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

Please try this.

msqsoft avatar Jan 17 '17 03:01 msqsoft

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

sherifzaki avatar Mar 29 '17 16:03 sherifzaki