I am using Angular leaflet directive and leaflet.label to show label on the marker, but when I follow the example given by angular-leaflet-directive, some errors come up. I don't know if I did anything wrong.
Cannot read property 'call' of undefined
at NewClass.whenReady (leaflet-src1.js:3293)
at NewClass.addLayer (leaflet-src1.js:3566)
at NewClass.showLabel (leaflet.label-src.js:538)
at NewClass.showLabel (leaflet.label-src.js:287)
at NewClass._onMarkerAdd (leaflet.label-src.js:383)
at NewClass.fire (leaflet-src1.js:587)
at NewClass._layerAdd (leaflet-src1.js:3514)
at NewClass.whenReady (leaflet-src1.js:3293)
at NewClass.addLayer (leaflet-src1.js:3566)
at _addMarkers (angular-leaflet-directive.js:4446)
angular-leaflet-directive v0.9
leaflet v1.0
leaflet.label plugin v0.2.4
I am using Angular leaflet directive and leaflet.label to show label on the marker, but when I follow the example given by angular-leaflet-directive, some errors come up. I don't know if I did anything wrong.
and my code is
Thanks in advance, any advice is appreciated.