| | |
| | | |
| | | // 新增模式绘制 |
| | | function addPolygon () { |
| | | drawPolygonExample = new DrawPolygon(viewer) |
| | | drawPolygonExample = new DrawPolygon() |
| | | drawPolygonExample.initHandler(viewer) |
| | | drawPolygonExample.subscribe('getPolygonPositions', drawFinished) |
| | | } |
| | |
| | | if (!formData.value?.geom) return |
| | | pointList = geomAnalysis(formData.value.geom) |
| | | drawPolygonExample?.destroy() |
| | | drawPolygonExample = new DrawPolygon(viewer) |
| | | drawPolygonExample = new DrawPolygon() |
| | | let noClosedList = _.cloneDeep(pointList) |
| | | noClosedList.pop() |
| | | drawPolygonExample.initPolygon( |