| | |
| | | import mapConfig from './mapConfig'; |
| | | import mapData from './mapData'; |
| | | import mapServer from './mapServe'; |
| | | |
| | | import * as turf from '@turf/turf'; |
| | | const mapInit = { |
| | | async Init() { |
| | | console.log(location) |
| | | window.earthCtrl = new SmartEarth.EarthCtrl('sdkContainer', { |
| | | // 隐藏默认底图 |
| | | defaultImagery: false, |
| | |
| | | serveType: 'tdMap', |
| | | url: baseLayer.sUrl + baseLayer.vecLayer + baseLayer.lUrl, |
| | | }); |
| | | |
| | | // mapServer.addLayer({ |
| | | // serveType: 'WMS', |
| | | // url: 'sxpw:shanxitif', |
| | | // }); |
| | | // 添加天地图标注 |
| | | mapServer.addLayer({ |
| | | serveType: 'tdMap', |