From 56b43d0a37ec52b718b32b00c63eb88f2e2744f3 Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期五, 26 二月 2021 09:07:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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