如何在OpenLayers中绘制多线?
我已经在露天层中学到了一个绘图对象。
当用户移动鼠标时,我尝试绘制虚线。当用户单击最后一个和前一个线路时,应在直线上更换上一个线条。
它如何工作,我应该使用两个不同的绘图艾尔人并在它们之间切换?
还是我可以从绘制对象中检索最后一行并在直线上重新绘制它?
我尝试从官方文档中使用此示例:
I have learned a Draw object in Openlayers.
I try to draw the dotted line when user moves the mouse. When user clicks the last and prev lines should be replaced on straight line.
How does it work, should I use two different drawing ayers and switch between them?
Or I can retrieve a last line from draw object and redraw it on straight line?
I try to use this sample from official document:
https://openlayers.org/en/latest/examples/measure-style.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个解决方案: Measure-style> style
There is a solution: measure-style