Open intersel opened 7 years ago
Just found this note somewhere... NOTE: starting with Leaflet 1.0, L.Label is added to Leaflet core as L.Tooltip and this plugin is deprecrated. Ok... I will use Tooltip !
Tooltips does not seem to work either... try to have this test working on leaflet 1.0.2 https://github.com/Leaflet/Leaflet/blob/master/debug/map/tooltip.html and... well... no tooltips... Same with leaflet 1.0.3 :-(
When we call showLabel as in the following example:
We get this following error:
We change the declaration of Leaflet.label declared as a "L.Class" in line 28 in leaflet.label-src.js as:
var LeafletLabel = L.Layer.extend({ ... });
` It fixed the problem for us... But is anyone could confirm if this fix is really the correct one?