Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在angular-leaflet-directive中,当我们使用 $watch 关闭时,是否有办法更新地图上的标记和路径markersWatchOptions?
markersWatchOptions
我认为您正在寻找类似于此示例的内容:
http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/mixed/overlays-markers-nested-no-watch-example
其中,标记通过 getDirectiveControls() 更新。
这个问题有更多关于它的信息:
https://github.com/angular-ui/ui-leaflet/issues/239