| | |
| | | iconAnchor: [13, 16], |
| | | popupAnchor: [26, -32] |
| | | }) |
| | | var drawLayer = this.map.editTools.startMarker() |
| | | // eslint-disable-next-line no-case-declarations |
| | | const drawLayer = this.map.editTools.startMarker() |
| | | drawLayer.setIcon(myIcon) |
| | | this.setLogic(drawLayer) |
| | | this.drawLayer.addLayer(drawLayer) |
| | | this.drawLayer.addLayer(this.setLogic(drawLayer)) |
| | | break |
| | | case '线标绘': |
| | | var drawLayerLine = this.map.editTools.startPolyline() |
| | | // eslint-disable-next-line no-case-declarations |
| | | const drawLayerLine = this.map.editTools.startPolyline() |
| | | this.drawLayer.addLayer(drawLayerLine) |
| | | this.setLogic(drawLayerLine) |
| | | break |
| | |
| | | this.setLogic(drawLayerPolygonJ) |
| | | break |
| | | case '圆形': |
| | | var drawLayerPolygonY = this.map.editTools.startCircle() |
| | | // eslint-disable-next-line no-case-declarations |
| | | const drawLayerPolygonY = this.map.editTools.startCircle() |
| | | this.drawLayer.addLayer(drawLayerPolygonY) |
| | | this.setLogic(drawLayerPolygonY) |
| | | // this.drawLayer = this.map.editTools.startCircle() |
| | | break |
| | | case '删除': |
| | | this.drawLayer.clearLayers() |