update markers when not watched

486 views Asked by At

In angular-leaflet-directive is there a way how to update markers and paths on the map when we switch off the $watch using markersWatchOptions?

1

There are 1 answers

3
anjeludo On BEST ANSWER

I think you are look for something similar to this example:

http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/mixed/overlays-markers-nested-no-watch-example

In which, markers are updated via getDirectiveControls().

There is more about it in this issue:

https://github.com/angular-ui/ui-leaflet/issues/239