| | |
| | | import leftNavsData from './pc/leftNavsData' |
| | | window.labelLayer = null; |
| | | window.divIcon = null; |
| | | |
| | | window.divIcononces = null; |
| | | |
| | | const popupParams = { |
| | | state: { |
| | |
| | | return |
| | | } |
| | | for (const i in list) { |
| | | const divIcon = new global.DC.DivIcon( |
| | | window.divIcononces = new global.DC.DivIcon( |
| | | new global.DC.Position( |
| | | Number(list[i].jd), |
| | | Number(list[i].wd), |
| | |
| | | ` |
| | | ) |
| | | // 订阅事件 |
| | | window.divIcon.on(global.DC.MouseEventType.CLICK, (e) => { |
| | | window.divIcononces.on(global.DC.MouseEventType.CLICK, (e) => { |
| | | // console.log(e); |
| | | // return; |
| | | // 定制化窗体 |
| | |
| | | data: list[i] |
| | | }) |
| | | }) |
| | | window.labelLayer.addOverlay(window.divIcon) |
| | | window.labelLayer.addOverlay(window.divIcononces) |
| | | } |
| | | }, |
| | | addLabelLayerIconMobelUse({ |