From 1883c95da4b79da03365e8e0eea6b917e6cb4f10 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期五, 26 二月 2021 12:11:01 +0800 Subject: [PATCH] 修改图层控制 --- src/conf/MapConfig.js | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/conf/MapConfig.js b/src/conf/MapConfig.js index 9eed49f..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 { ServiceLayers, PointLayers } 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,8 +36,7 @@ showBaseMapType: 1, // 1鏄剧ず澶╁湴鍥撅紝2鏄剧ずarcgis鍦板浘 IntranetBaseMaps: TDT.intranet, InternetBaseMaps: TDT.internet, - ServiceLayers: ServiceLayers, - PointLayers: PointLayers + Layers: { LayerSewersLine: [LayerSewersLine], layerSewersPoint: LayerSewersPoint } // 姹¢洦姘村浘灞傞厤缃� } /** @@ -57,6 +57,5 @@ mapOptions, mapConfig, TokenConfig, - BLUEMAP_HOST } -- Gitblit v1.8.0