From 089716c2a8969da79bfd10b56d5f77436038e19a Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Mon, 21 Nov 2022 20:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/mapConfig.js | 61 ++++++++++++++++--------- 1 file changed, 40 insertions(+), 21 deletions(-) diff --git a/front/public/static/config/mapConfig.js b/front/public/static/config/mapConfig.js index 28d6037f..d8ffa3be 100644 --- a/front/public/static/config/mapConfig.js +++ b/front/public/static/config/mapConfig.js @@ -2,30 +2,49 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-11-21 19:21:42 + * @LastEditTime: 2022-11-21 20:41:44 * @Description: 地图静态参数配置 */ var _mapConfig = {} - -; -(function() { - var L = window.L || {} - // // 定义底图初始化化参数 - // 请在此处更改你的配置********************************************** - // eslint-disable-next-line no-undef - var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' - // var CONFIGKEY = 'dev'; - // 请在上面更改你的配置*********************************************** - var BASECONFIGITEM = { - xihaian: { - base: 'xihaian', - CURRENT_MAP_OPTIONS: { - // crs: CRS_4490, - center: [35.96, 120.19], - maxZoom: 15, - minZoom: 0, - zoom: 5, - }, +;(function () { + var L = window.L || {} + // // 定义底图初始化化参数 + // 请在此处更改你的配置********************************************** + // eslint-disable-next-line no-undef + var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' + // var CONFIGKEY = 'dev'; + // 请在上面更改你的配置*********************************************** + var BASECONFIGITEM = { + xihaian: { + base: 'xihaian', + CURRENT_MAP_OPTIONS: { + // crs: CRS_4490, + center: [36.17, 120.13], + maxZoom: 17, + minZoom: 0, + zoom: 5, + }, + }, + qingdao: { + DATABASE_TYPE: 'Highgo', + POI_TYPE: 'Supermap', // POI接口类型 'Supermap'、'Amap'、'Survey_Institute' + ISERVER_URL: '15.2.21.238:8090', + WORKPLACE_NAME: 'HIMAP-HIGHGO', + MAP_NAME: 'QDMAP', + DATASOURCE_NAME: 'HISENSE_map', + ATMOSPHERE_URL: 'http://15.2.21.151:9015/service-main', + CURRENT_MAP_OPTIONS: { + // crs: CRS_4490, + center: [36.17, 120.13], + maxZoom: 18, + minZoom: 0, + zoom: 10, + }, + BDMAP_CONFIG: { + location: 'qingdao', + _initpos: { + point: [120.392795, 36.072854], + zoom: 2, }, _keyframes: [ [121.6011191295479, 36.73422934263509],