| | |
| | | import PathDrag from '@components/plugin/PathDrag' |
| | | import CanvasIcon from '@components/plugin/CanvasMarkers' |
| | | import MagicMarker from '@components/plugin/MagicMarker' |
| | | import WmtsSupport from '@components/plugin/wmts_plugins' |
| | | import 'leaflet.markercluster' |
| | | |
| | | import MapConfig from '@/conf/MapConfig' |
| | |
| | | PathDrag.init(L) // 路径拖拽 |
| | | MagicMarker.init(L) // 动画Marker |
| | | CanvasIcon.init(L) // 使用canvas绘制Marker |
| | | WmtsSupport.init(L) // 扩展,使支持WMTS |
| | | // CustomPopup.init(L) // 自定义弹出框 |
| | | DashFlow.DashFlow(L) // 流动线图 |
| | | // Leaflet扩展代码 |
| | | |
| | | map = L.map(div, MapConfig.mapOptions) |
| | | |
| | | map.on('click', (event, a, b) => { |
| | | console.log(event, a, b) |
| | | }) |
| | | |
| | | window.map = map |
| | | window.L = L |
| | |
| | | const initBasemapsHelper = (map, L) => { |
| | | // todo 这里进行底图地图的初始化 |
| | | var basemapHelper = new BasemapHelper({map, L}) |
| | | console.log(basemapHelper) |
| | | return basemapHelper |
| | | } |
| | | /** |