| | |
| | | import './components/plugin/Editable' // 标绘操作 |
| | | import './components/plugin/MagicMarker' // 动画Marker |
| | | import './assets/css/map/magic.min.css' // 动画Marker css |
| | | import './components/BaseNav/Pulse' |
| | | import './components/BaseNav/Pulse.css' |
| | | |
| | | // import WmtsSupport from '@components/plugin/wmts_plugins' |
| | | // import CanvasMarkers from '@components/plugin/CanvasMarkers' |
| | | // import FullScreen from '@components/plugin/FullScreen' |
| | | // import 'leaflet-canvas-markers' |
| | | import '@/components/plugin/magicMarker.css' |
| | | import '@components/plugin/pulse/Pulse' // marker 外圈波 |
| | | import '@components/plugin/pulse/Pulse.css' // marker 外圈波 css |
| | | |
| | | let map = null |
| | | const L = window.L |
| | |
| | | if (map != null) { |
| | | map.remove() |
| | | } |
| | | |
| | | // Leaflet扩展代码 |
| | | // Editable.init(L) // 图层编辑 |
| | | // PathDrag.init(L) // 路径拖拽 |
| | | // MagicMarker.init(L) // 动画Marker |
| | | // WmtsSupport.init(L) // 扩展,使支持WMTS |
| | | // CustomPopup.init(L) // 自定义弹出框 |
| | | // CanvasMarkers.init(L)// 画布图层 |
| | | // 全屏 |
| | | // FullScreen.init(L) |
| | | // 下载 |
| | | // LeafletMeasurePath.init(L) |
| | | DownLoad.init(L) |
| | | |
| | | map = L.map(div, MapConfig.mapOptions) |
| | |
| | | |
| | | window.map = map |
| | | window.L = L |
| | | |
| | | // L.sgis = L.sgis || L |
| | | |
| | | initTileLayersHelper(map) |
| | | |
| | |
| | | */ |
| | | const initBasemapsHelper = (map) => { |
| | | // todo 这里进行底图地图的初始化 |
| | | console.log(map) |
| | | return new BasemapHelper({ map }) |
| | | } |
| | | /** |