From 4627fc484c1697ca7e9f05f9e5d2d85341b526fe Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 25 二月 2021 18:12:27 +0800
Subject: [PATCH] 修改图层控制
---
src/conf/MapConfig.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/conf/MapConfig.js b/src/conf/MapConfig.js
index 351daba..fdaa00f 100644
--- a/src/conf/MapConfig.js
+++ b/src/conf/MapConfig.js
@@ -1,6 +1,6 @@
锘縤mport * as L from 'leaflet'
import TDT from './TDT'
-import { Layers } from './Layers'
+import { LayerSewersLine, LayerSewersPoint } from './LayerSewers'
const curWwwPath = window.document.location.href
const pathname = window.document.location.pathname
const pos = curWwwPath.indexOf(pathname)
@@ -27,7 +27,8 @@
inertia: true,
zoomControl: false,
attributionControl: false,
- editable: true
+ editable: true,
+ preferCanvas: true
}
const mapConfig = {
@@ -35,7 +36,7 @@
showBaseMapType: 1, // 1鏄剧ず澶╁湴鍥撅紝2鏄剧ずarcgis鍦板浘
IntranetBaseMaps: TDT.intranet,
InternetBaseMaps: TDT.internet,
- ServiceLayers: Layers
+ Layers: { LayerSewersLine: [LayerSewersLine], layerSewersPoint: LayerSewersPoint } // 姹¢洦姘村浘灞傞厤缃�
}
/**
@@ -56,6 +57,5 @@
mapOptions,
mapConfig,
TokenConfig,
-
BLUEMAP_HOST
}
--
Gitblit v1.8.0