| | |
| | | import dowloadChooose from '@assets/images/map-pages/icon/toolbox/Selecd/xiazai.png' |
| | | |
| | | // 标绘的可选择数据 |
| | | import iconRefinery from '@assets/images/map-pages/local.png' |
| | | // import iconRefinery from '@assets/images/map-pages/local.png' |
| | | |
| | | import marker from '@assets/images/map-pages/icon/toolbox/map.png' |
| | | import line from '@assets/images/map-pages/icon/toolbox/line.png' |
| | |
| | | switch (itemT.label) { |
| | | case '点标绘': |
| | | var myIcon = this.L.icon({ |
| | | iconUrl: iconRefinery, |
| | | iconUrl: '', // iconRefinery |
| | | iconSize: [26, 32], |
| | | iconAnchor: [13, 16], |
| | | popupAnchor: [26, -32] |
| | |
| | | var drawLayerPolygonY = this.map.editTools.startCircle() |
| | | this.drawLayer.addLayer(drawLayerPolygonY) |
| | | this.setLogic(drawLayerPolygonY) |
| | | // this.drawLayer = this.map.editTools.startCircle() |
| | | break |
| | | case '删除': |
| | | this.drawLayer.clearLayers() |
| | | break |
| | | case '距离': |
| | | Measure.startMeasureLen(this.map, this.L) |
| | |
| | | exportOnly: true, |
| | | hideControlContainer: true |
| | | }).addTo(this.map) |
| | | printer.printMap('CurrentSize', 'MyManualPrint') |
| | | printer.printMap('CurrentSize', '全屏') |
| | | break |
| | | case 'A4横向': |
| | | var printerX = this.L.easyPrint({ |
| | |
| | | exportOnly: true, |
| | | hideControlContainer: true |
| | | }).addTo(this.map) |
| | | printerX.printMap('A4Landscape page', 'MyManualPrint') |
| | | printerX.printMap('A4Landscape page', '横向') |
| | | break |
| | | case 'A4纵向': |
| | | var printerY = this.L.easyPrint({ |
| | |
| | | exportOnly: true, |
| | | hideControlContainer: true |
| | | }).addTo(this.map) |
| | | printerY.printMap('A4Portrait page', 'MyManualPrint') |
| | | break |
| | | case '删除': |
| | | // this.map.removeLayer(this.drawLayer) |
| | | this.drawLayer.clearLayers() |
| | | printerY.printMap('A4Portrait page', '纵向') |
| | | break |
| | | } |
| | | }, |