【问题标题】:Why snapping doesn't work on Leaflet version 1.0.0 and newer?为什么捕捉在 Leaflet 1.0.0 及更高版本上不起作用?
【发布时间】:2020-01-23 13:32:41
【问题描述】:

在 Leaflet.Draw 的文档中,捕捉示例不适用于 Leaflet 1.0,但它适用于 Leaflet 0.7

http://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html#l-draw-polyline

它应该用不同的方法工作吗?

【问题讨论】:

    标签: leaflet leaflet.draw


    【解决方案1】:

    Leaflet-Geoman 具有适用于 Leaflet 1.0 及更高版本的捕捉功能。 https://github.com/geoman-io/leaflet-geoman

    免责声明:我是 Leaflet-Geoman 的作者

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-01
      • 2013-05-18
      • 2014-05-07
      • 2018-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多