【问题标题】:update markers when not watched未观看时更新标记
【发布时间】:2016-03-01 09:08:36
【问题描述】:

angular-leaflet-directive 中,当我们使用markersWatchOptions 关闭$watch 时,有没有办法更新地图上的标记和路径?

【问题讨论】:

    标签: angularjs angular-leaflet-directive ui-leaflet


    【解决方案1】:

    我认为您正在寻找类似于此示例的内容:

    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

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-01
    • 2019-01-25
    • 1970-01-01
    • 2015-07-09
    • 1970-01-01
    • 1970-01-01
    • 2018-01-28
    相关资源
    最近更新 更多