Leaflet / Leaflet.label

Leaflet.label is plugin for adding labels to markers & shapes on leaflet powered maps.
MIT License
465 stars 225 forks source link

Some labels not displayed when removing layer and re-adding it while using Leaflet.markercluster #150

Open stevenmason opened 8 years ago

stevenmason commented 8 years ago

image

To recreate this: 1) Create a marker cluster group layer. 2) Add it to the map. 3) Zoom in till some markers are shown and a cluster is shown (see image) 4) Remove the marker cluster group. 5) Add the marker cluster group back to the map.

vohzd commented 8 years ago

similar issue, except when zooming in on markerclusters, the blue markers disappear. The console throws;

Map.js:1 Uncaught TypeError: Cannot read property 'call' of undefined

stack

Any ideas at all? I'm using UI-Leaflet with Leaflet.markercluster, and Leaflet.label - The entire thing is bundled with JSPM although I think it's down to the two packages not playing nicely as I've tried re-installing different tags/branches to get different effects. Using github:Leaflet/Leaflet@1.0.0-rc.1,github:Leaflet/Leaflet.label@0.2.1, github:Leaflet/Leaflet.markercluster@1.0.0-rc.1, in my build.

vohzd commented 8 years ago

Update: I was previously using github:Leaflet/Leaflet.label@0.2.1, by updating to 0.2.2-dev the issue is now resolved.

dryror commented 8 years ago

Can confirm that I am seeing the same bug as @stevenmason.

Using Leaflet.label@0.2.2-dev, Leaflet.markercluster@0.5.0, Leaflet@0.7.7

pcrombach commented 7 years ago

I finally resolved this issue by using Leaflet 1.0.1. Leaflet now has tooltips. I changed labels into tooltips. You also need the latest markercluster plugin. Problemen fixed. If you need help how to let me know.