【问题标题】:How to change position of a point/vertex in GWT maps polyline?如何更改 GWT 地图折线中点/顶点的位置?
【发布时间】:2011-10-18 16:09:39
【问题描述】:

我正在使用 GWT 谷歌地图。 我知道如何绘制折线,然后通过调用 setEditingEndabled(true) 对其进行编辑。 我可以使用鼠标手动更改单个点。 但是,如果我想以编程方式更改点/顶点,我应该怎么做? polyline.insertVertex() 将引入新的顶点。我需要的是移动当前的顶点。

谢谢。

【问题讨论】:

    标签: google-maps gwt polyline


    【解决方案1】:

    尝试类似:

    polyline.deleteVertex(index);
    polyline.insertVertex(index, newVertex);
    

    【讨论】:

      猜你喜欢
      • 2013-07-13
      • 1970-01-01
      • 2014-04-19
      • 2017-08-19
      • 1970-01-01
      • 1970-01-01
      • 2012-09-17
      • 2013-10-03
      • 2015-03-23
      相关资源
      最近更新 更多