Leaflet.label icon indicating copy to clipboard operation
Leaflet.label copied to clipboard

Draggable label?

Open simo78 opened this issue 11 years ago • 3 comments

This is a question and perhaps even a feature request, if such are alllowed here.

I am trying to make Leaflet.labels draggable to be able to read overlapping labels (see attached image). I have, of course, tried adding { draggable: true } to the bindLabel call. It does not seem to be supported. Neither does { direction : auto } help me here, because my map has so many labels.

With a very limited Javascript knowledge I am unable to solve this by myself, and therefore any help is much appreciated.

iconoverlap

Clarification: I only want to drag the label, not the related marker.

simo78 avatar Jan 07 '14 22:01 simo78

Unfortunately label by themselves are not draggable. So yes this would be a feature request which are welcome but probably won't be done until someone needs it and does it themselves :D

jacobtoye avatar Jan 12 '14 21:01 jacobtoye

Ok, understood and sounds fair :). Consider this then as a feature request. Once I become a Zen master of Javascript, I will get back to this!

simo78 avatar Jan 12 '14 21:01 simo78

hello, i have the same issue. And i just started with javascript. I guess the label are still not dragable. Is it possible to resize it with the zoom? By the way, your plugin is very usefull and well done

dbriwill avatar Oct 31 '14 15:10 dbriwill