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

leaflet.label plugin error #159

Open
jewelcai opened this issue Jul 13, 2016 · 1 comment
Open

leaflet.label plugin error #159

jewelcai opened this issue Jul 13, 2016 · 1 comment

Comments

@jewelcai
Copy link

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.

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)

and my code is

marker.label={
            message: data.name,
            options: {
            noHide: true
            }
        };

Thanks in advance, any advice is appreciated.

@gholol
Copy link

gholol commented Jul 21, 2016

starting with Leaflet 1.0, L.Label is added to Leaflet core as L.Tooltip and this plugin is deprecrated.

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

2 participants