| | |
| | | |
| | | import MapConfig from '@/conf/MapConfig' |
| | | import DashFlow from '@components/plugin/PathDashFlow' |
| | | import CanvasMarkers from '@components/plugin/CanvasMarkers' |
| | | import FullScreen from '@components/plugin/FullScreen' |
| | | import DownLoad from '@components/plugin/DownLoad' |
| | | |
| | | let map = null |
| | | const L = window.L |
| | | const initMap = (div) => { |
| | |
| | | WmtsSupport.init(L) // 扩展,使支持WMTS |
| | | // CustomPopup.init(L) // 自定义弹出框 |
| | | DashFlow.DashFlow(L) // 流动线图 |
| | | // Leaflet扩展代码 |
| | | CanvasMarkers.init(L)// 画布图层 |
| | | // 全屏 |
| | | FullScreen.init(L) |
| | | // 下载 |
| | | DownLoad.init(L) |
| | | |
| | | map = L.map(div, MapConfig.mapOptions) |
| | | |
| | |
| | | }) |
| | | |
| | | window.map = map |
| | | window.L = L |
| | | initTileLayersHelper(map) |
| | | return map |
| | | } |