angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
314 stars 134 forks source link

Are Angular-powered labels supposed to work? #271

Open ValentinH opened 8 years ago

ValentinH commented 8 years ago

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.

j-r-t commented 8 years ago

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

Thanks

ValentinH commented 8 years ago

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

j-r-t commented 8 years ago

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

ValentinH commented 8 years ago

Thanks

ValentinH commented 8 years ago

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.