Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问为何v3版本中已绘制的图形不能编辑,仅能拖动? #6

Closed
josephvong opened this issue Mar 9, 2020 · 5 comments

Comments

@josephvong
Copy link

No description provided.

@josephvong
Copy link
Author

Q: in V3, feature which drawed and use in "plot.plotEdit(feature)", but fail to modify, only dragable.

@sakitam-fdd
Copy link
Owner

@josephvong 可以提供一个最小示例吗

@luluy
Copy link

luluy commented Jan 22, 2021

我也遇到同样的问题了,这个要如何解决

@ANALKH-DY
Copy link

1.examples文件夹缺少ol-plot.css文件,通过npm 安装 里面有该css文件,解决控制点不显示的问题。
2.在vue3+ol6中,控制点overlay移除失败,考虑使用以下方式删除:
`if (item && item instanceof Overlay) {
console.log('控制点',typeof item ,typeof _this3.map.getOverlayById(item.id));

      _this3.map.removeOverlay(_this3.map.getOverlayById(item.id));
    }`

@sakitam-fdd
Copy link
Owner

注意:编辑节点是 ol.Overlay , 是 dom 节点,ol-plot 中的 ol-plot.css 样式文件需要同步引入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants