派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-03-16 dcd10e4906fd6f903c35791f591833b8f26af1e8
修改
1个文件已添加
1个文件已修改
12 ■■■■■ 已修改文件
src/assets/images/map-pages/local.png 补丁 | 查看 | 原始文档 | blame | 历史
src/components/panel/ToolBoxPanel.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/images/map-pages/local.png
src/components/panel/ToolBoxPanel.vue
@@ -250,13 +250,15 @@
            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
@@ -271,10 +273,10 @@
          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()