| | |
| | | // 选中的内容图片 |
| | | import markerChoose from '@assets/images/map-pages/icon/toolbox/biaohuimark/dingweimark.png' |
| | | import lineChoose from '@assets/images/map-pages/icon/toolbox/biaohuimark/linemark.png' |
| | | import distanceChoose from '@assets/images/map-pages/icon/toolbox/biaohuimark/juliceliangmark.png' |
| | | import mmChoose from '@assets/images/map-pages/icon/toolbox/biaohuimark/mianjiceliangmark.png' |
| | | import delChoose from '@assets/images/map-pages/icon/toolbox/biaohuimark/shanchu.png' |
| | | |
| | | // 测量 |
| | | import distance from '@assets/images/map-pages/icon/toolbox/juli.png' |
| | | import distance from '@assets/images/map-pages/icon/toolbox/jusli.png' |
| | | import mm from '@assets/images/map-pages/icon/toolbox/M2.png' |
| | | |
| | | // 测量的方法 |
| | |
| | | index: '3-1', |
| | | label: '距离', |
| | | icon: distance, |
| | | title: '距离测量' |
| | | title: '距离测量', |
| | | iconChoose: distanceChoose |
| | | }, |
| | | { |
| | | index: '3-2', |
| | | label: '面积', |
| | | icon: mm, |
| | | title: '面积测量' |
| | | title: '面积测量', |
| | | iconChoose: mmChoose |
| | | }, |
| | | { |
| | | index: '3-3', |
| | | label: '清除', |
| | | icon: del, |
| | | title: '清除测量', |
| | | iconChoose: delChoose |
| | | } |
| | | ] |
| | | }, |
| | |
| | | selectGroup: false, |
| | | active: -1, |
| | | drawLayer: null, |
| | | Draw: null, |
| | | map: null, |
| | | L: window.L |
| | | } |
| | |
| | | case '面积': |
| | | Measure.startMeasureArea(this.map, this.L) |
| | | break |
| | | case '清除': |
| | | Measure.clearMeasure(this.map, this.L) |
| | | break |
| | | case '全屏': |
| | | // this.map.toggleFullscreen() |
| | | var printer = this.L.easyPrint({ |