Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

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

Open
stevenmason opened this issue Apr 4, 2016 · 4 comments

Comments

@stevenmason
Copy link

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
Copy link

vohzd commented May 18, 2016

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
Copy link

vohzd commented May 18, 2016

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
Copy link

dryror commented Jun 3, 2016

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
Copy link

pcrombach commented Nov 7, 2016

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.

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

4 participants