ngx-leaflet-starter
ngx-leaflet-starter copied to clipboard
add component to bindPopup or L.popup
Is there any way to add a custom component to bindpopup or L.popup ? Thanks you
I have not tried yet but it should be possible. The general idea is to compile the html template and then pass the html element using the setContent()
method.
This may be helpful: https://stackoverflow.com/questions/48028676/compile-dynamic-html-in-angular-4-5-something-similar-to-compile-in-angular-js