| | |
| | | */ |
| | | |
| | | import { map } from './index_old'; |
| | | import sector from './sector'; |
| | | import { DialogUtil } from './dialog'; |
| | | import { useToolboxStore } from '@/stores/toolbox'; |
| | | |
| | | const toolboxStore = useToolboxStore(); |
| | |
| | | if (!toolboxStore.dataMarkerStatus) { |
| | | return; |
| | | } |
| | | if (_massMarks) { |
| | | map.remove(_massMarks); |
| | | _massMarks = undefined; |
| | | } |
| | | this.clearMassMarks(); |
| | | const lnglats = fDatas.lnglats_GD; |
| | | var data = []; |
| | | for (let i = 0; i < lnglats.length; i++) { |
| | |
| | | _massMarks = massMarks; |
| | | map.add(massMarks); |
| | | }, |
| | | clearMassMarks() { |
| | | if (_massMarks) { |
| | | map.remove(_massMarks); |
| | | _massMarks = undefined; |
| | | } |
| | | }, |
| | | |
| | | createLabelMarks(img, dataList) { |
| | | // eslint-disable-next-line no-undef |
| | |
| | | image: img, |
| | | // clipOrigin: [14, 92], |
| | | // clipSize: [50, 68], |
| | | size: [24, 24], |
| | | size: [30, 30], |
| | | anchor: 'bottom-center', |
| | | angel: 0, |
| | | retina: true |
| | |
| | | direction: 'top', |
| | | offset: [0, -5], |
| | | style: { |
| | | fontSize: 15, |
| | | fontSize: 16, |
| | | fontWeight: 'normal', |
| | | fillColor: '#fff', |
| | | strokeColor: '#333', |
| | | strokeWidth: 2 |
| | | // backgroundColor: '#b1009b' |
| | | strokeWidth: 0, |
| | | backgroundColor: '#122b54a9' |
| | | } |
| | | } |
| | | }; |