ui-leaflet icon indicating copy to clipboard operation
ui-leaflet copied to clipboard

Are Angular-powered labels supposed to work?

Open ValentinH opened this issue 9 years ago • 5 comments

I'm trying to interpolate some values in a Leaflet.Label defined with the label property and I'm wondering if it's supposed to work?

I would expect it to work like the popup in this example: http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html#/markers/angular-template-example

In this line, marker.label._container is undefined.

ValentinH avatar Jul 01 '16 14:07 ValentinH

Hi, can you post a fiddle of your issue and i'm sure someone will be able to help.

Thanks

j-r-t avatar Jul 01 '16 14:07 j-r-t

OK, do you have a default JSFiddle that I can fork?

ValentinH avatar Jul 01 '16 14:07 ValentinH

Maybe this? http://jsfiddle.net/s8ka3epp/

j-r-t avatar Jul 01 '16 14:07 j-r-t

Thanks

ValentinH avatar Jul 01 '16 14:07 ValentinH

Here is what I'm trying to do: http://jsfiddle.net/a2rssce9/

A possibility for this issue is that the label content is compiled by ui-leaflet when the marker is added, while the label content is added in the DOM on the first hover.

ValentinH avatar Jul 01 '16 14:07 ValentinH