src/Sgis.js
@@ -9,6 +9,7 @@ import MapConfig from '@/conf/MapConfig' import DashFlow from '@components/plugin/PathDashFlow' import CanvasMarkers from '@components/plugin/CanvasMarkers' let map = null const L = window.L const initMap = (div) => { @@ -23,6 +24,7 @@ WmtsSupport.init(L) // 扩展,使支持WMTS // CustomPopup.init(L) // 自定义弹出框 DashFlow.DashFlow(L) // 流动线图 CanvasMarkers.init(L)// 画布图层 // Leaflet扩展代码 map = L.map(div, MapConfig.mapOptions)