【问题标题】:Snapping control in openlayers 3openlayers 3中的捕捉控制
【发布时间】:2014-05-15 15:31:46
【问题描述】:

我想在我的项目中使用 snap 控件。我看到了很多关于如何在 openlayers 2 中使用它的示例。在我的项目中,我使用的是 openlayers 3。openlayers 3 中是否有 snap 控件?

【问题讨论】:

    标签: openlayers-3


    【解决方案1】:

    没有。它被标记为未解决的问题,https://github.com/openlayers/ol3/issues/1164。如果您查看 https://github.com/openlayers/ol3/blob/master/src/ol/interaction/modifyinteraction.jshttps://github.com/openlayers/ol3/blob/master/src/ol/interaction/drawinteraction.js 的 modifyinteraction 和 drawinteraction 的源代码,您会发现一些捕捉机制已经到位,但没有捕捉控制。 OL3 仍处于测试阶段(edit, gamma),预算有限,所以我们要么等待,要么自己编写并在 github 上发出 pull request:D。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-07-31
      • 1970-01-01
      • 2011-08-13
      • 2011-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-06
      相关资源
      最近更新 更多