开发者

How to change position of a point/vertex in GWT maps polyline?

I am using GWT google-maps. I know how to draw a polyline and then edit it by calling setEditingEndabled(true). I can change a single point by using mo开发者_如何学Cuse, manually. However, if I want to change a point/vertex programmatically, What should I do? polyline.insertVertex() will introduce new vertex. What I need is moving the current vertex around.

Thanks.


Try something like:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜