From 48d575a147ecf5b5ea042dc38d99ed58df68ddfd Mon Sep 17 00:00:00 2001 From: YANGDL <114714267@qq.com> Date: 星期五, 15 一月 2021 18:02:53 +0800 Subject: [PATCH] 增加mapbox插接件和功能 --- src/conf/MapConfig.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/conf/MapConfig.js b/src/conf/MapConfig.js index 08b9b3e..8cd7617 100644 --- a/src/conf/MapConfig.js +++ b/src/conf/MapConfig.js @@ -12,7 +12,7 @@ // service涓绘満閰嶇疆 const APP_GIS_HOST = 'http://xearth.cn:6299' -const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6288' +const APP_GIS_HOST_PIPELINE = 'http://xearth.cn:6289' // 鑷畾涔変富鏈洪厤缃� const BLUEMAP_HOST = APP_GIS_HOST // 鍏徃鍙戝竷鐨勫湴鍥炬湇鍔★紝鐢ㄤ簬娴嬭瘯鐨勫湴鍧� @@ -26,8 +26,9 @@ crs: L.CRS.EPSG4326, minZoom: 3, maxZoom: 18, - center: [26, 104], - zoom: 3, + // center: [26, 104], + center: [32.224016189575195, 118.77070426940918], + zoom: 14, worldCopyJump: true, inertia: true, zoomControl: false, @@ -222,7 +223,8 @@ icon_actived: '', icon_deactived: '', type: 'wms', - url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', + // url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLineTest/wms?version=1.1.1', + url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1', inLegend: true, checked: true, option: { @@ -231,6 +233,7 @@ format: 'image/png', // WMS image format (use 'image/png' for layers with transparency). transparent: true, // If true, the WMS service will return images with transparency. version: '1.1.1', // Version of the WMS service to use + tileSize: L.point(1024, 1024), crs: L.CRS.EPSG4326, // Coordinate Reference System to use for the WMS requests, defaults to map CRS. Don't change this if you're not sure what it means. uppercase: false }, -- Gitblit v1.8.0