From 6ffa578934b471302ed9ced5d1813003f8c23cc5 Mon Sep 17 00:00:00 2001
From: YANGDL <114714267@qq.com>
Date: 星期四, 04 三月 2021 11:56:11 +0800
Subject: [PATCH] 修改管网先tooltip样式
---
src/Sgis.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/Sgis.js b/src/Sgis.js
index eec70ab..22380e4 100644
--- a/src/Sgis.js
+++ b/src/Sgis.js
@@ -4,12 +4,12 @@
import Editable from '@components/plugin/Editable'
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 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) => {
@@ -21,10 +21,10 @@
Editable.init(L) // 鍥惧眰缂栬緫
PathDrag.init(L) // 璺緞鎷栨嫿
MagicMarker.init(L) // 鍔ㄧ敾Marker
- CanvasIcon.init(L) // 浣跨敤canvas缁樺埗Marker
WmtsSupport.init(L) // 鎵╁睍锛屼娇鏀寔WMTS
// CustomPopup.init(L) // 鑷畾涔夊脊鍑烘
DashFlow.DashFlow(L) // 娴佸姩绾垮浘
+ CanvasMarkers.init(L)// 鐢诲竷鍥惧眰
// Leaflet鎵╁睍浠g爜
map = L.map(div, MapConfig.mapOptions)
@@ -34,7 +34,7 @@
})
window.map = map
-
+ initTileLayersHelper(map)
return map
}
@@ -53,7 +53,8 @@
* @param L
*/
const initTileLayersHelper = (map) => {
- return new ServiceLayerHelper({ map })
+ var serviceLayerHelper = new ServiceLayerHelper({ map })
+ return serviceLayerHelper
}
/**
--
Gitblit v1.8.0