2022-06-14 09:32:49 +08:00
|
|
|
/*
|
|
|
|
* @Author: hisense.wuhongjian
|
|
|
|
* @Date: 2020-07-07 16:03:23
|
|
|
|
* @LastEditors: hisense.wuhongjian
|
2022-07-28 16:58:01 +08:00
|
|
|
* @LastEditTime: 2022-07-28 16:57:43
|
2022-06-14 09:32:49 +08:00
|
|
|
* @Description: 地图静态参数配置
|
|
|
|
*/
|
2022-07-26 15:16:28 +08:00
|
|
|
var _mapConfig = {}
|
2022-06-14 09:32:49 +08:00
|
|
|
|
2022-07-26 15:16:28 +08:00
|
|
|
;(function () {
|
|
|
|
var L = window.L || {}
|
2022-06-14 09:32:49 +08:00
|
|
|
|
|
|
|
// // 定义底图初始化化参数
|
|
|
|
// 请在此处更改你的配置**********************************************
|
2022-07-28 16:58:01 +08:00
|
|
|
var CONFIGKEY = 'qingdao_highgo'
|
2022-06-14 09:32:49 +08:00
|
|
|
// var CONFIGKEY = 'dev';
|
|
|
|
// 请在上面更改你的配置***********************************************
|
|
|
|
var BASECONFIGITEM = {
|
2022-07-26 15:16:28 +08:00
|
|
|
qingdao: {
|
|
|
|
base: 'xihaian',
|
2022-06-14 09:32:49 +08:00
|
|
|
CURRENT_MAP_OPTIONS: {
|
2022-07-26 15:16:28 +08:00
|
|
|
// crs: CRS_4490,
|
|
|
|
center: [36.17, 120.13],
|
|
|
|
maxZoom: 18,
|
|
|
|
minZoom: 0,
|
|
|
|
zoom: 10,
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
},
|
2022-07-26 15:16:28 +08:00
|
|
|
qingdao_highgo: {
|
2022-06-14 09:32:49 +08:00
|
|
|
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],
|
2022-07-26 15:16:28 +08:00
|
|
|
zoom: 2,
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
_keyframes: [
|
|
|
|
[121.6011191295479, 36.73422934263509],
|
|
|
|
[119.83371870221472, 36.082854],
|
2022-07-26 15:16:28 +08:00
|
|
|
[120.25937000453506, 36.34563716789656],
|
|
|
|
],
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
MAP_VENDOR: 'Supermap', // 地图厂商 Supermap bdmap 3dbdmap
|
2022-07-26 15:16:28 +08:00
|
|
|
TITLE_LAYER: {
|
|
|
|
mapUrl:
|
|
|
|
'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F',
|
|
|
|
type: 'tiled',
|
|
|
|
name: '矢量',
|
|
|
|
icon: 'vector_map.png',
|
|
|
|
},
|
|
|
|
TITLE_LAYER_REMOTE: {
|
|
|
|
mapUrl:
|
|
|
|
'http://q3d.qd.gov.cn:8195/portalproxy/vw6bffpy/TileServer/arcgis/rest/services/normal_2021_4490Arcgis/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F',
|
|
|
|
type: 'tiled',
|
|
|
|
name: '矢量',
|
|
|
|
icon: 'vector_map.png',
|
|
|
|
},
|
2022-06-14 09:32:49 +08:00
|
|
|
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', type: 'tiled', name: '矢量', icon: 'vector_map.png' },
|
|
|
|
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.2.21.238:8090/iserver/services/map-ugcv5-QingdaoRemoteImageMap/rest/maps/QingdaoRemoteImageMap', type: 'remote', name: '影像', icon: 'satellite_map.png' },
|
2022-07-26 15:16:28 +08:00
|
|
|
TITLE_LAYER_DARK: {
|
|
|
|
mapUrl:
|
|
|
|
'http://15.2.21.238:8090/iserver/services/map-ugcv5-shandong/rest/maps/shandong',
|
|
|
|
type: 'dark',
|
|
|
|
name: '其他',
|
|
|
|
icon: 'other_map.png',
|
|
|
|
},
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
//测试环境地图
|
2022-07-26 15:16:28 +08:00
|
|
|
dev: {
|
2022-06-14 09:32:49 +08:00
|
|
|
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: 7,
|
|
|
|
minZoom: 0,
|
|
|
|
zoom: 3,
|
|
|
|
},
|
|
|
|
BDMAP_CONFIG: {
|
|
|
|
location: 'qingdao',
|
|
|
|
_initpos: {
|
|
|
|
point: [120.392795, 36.072854],
|
2022-07-26 15:16:28 +08:00
|
|
|
zoom: 2,
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
_keyframes: [
|
|
|
|
[121.6011191295479, 36.73422934263509],
|
|
|
|
[119.83371870221472, 36.082854],
|
2022-07-26 15:16:28 +08:00
|
|
|
[120.25937000453506, 36.34563716789656],
|
|
|
|
],
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
|
|
|
MAP_VENDOR: 'Supermap', // 地图厂商 Supermap bdmap 3dbdmap
|
2022-07-26 15:16:28 +08:00
|
|
|
TITLE_LAYER: {
|
|
|
|
mapUrl:
|
|
|
|
'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F',
|
|
|
|
type: 'tiled',
|
|
|
|
name: '矢量',
|
|
|
|
icon: 'vector_map.png',
|
|
|
|
},
|
|
|
|
TITLE_LAYER_REMOTE: {
|
|
|
|
mapUrl:
|
|
|
|
'http://q3d.qd.gov.cn:8195/portalproxy/s9arfiqe/TileServer/arcgis/rest/services/normal2021_test/MapServer?key=p9PW1ipy9P3QHILzmsNOk8Gc',
|
|
|
|
type: 'tiled',
|
|
|
|
name: '矢量',
|
|
|
|
icon: 'vector_map.png',
|
|
|
|
},
|
2022-06-14 09:32:49 +08:00
|
|
|
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.72.177.174:8195/portalproxy/TileServer/arcgis/rest/services/normal2021/MapServer?key=iOgQotfgfyLvhj6WgfDTpq7F', type: 'tiled', name: '矢量', icon: 'vector_map.png' },
|
|
|
|
// TITLE_LAYER_REMOTE: { mapUrl: 'http://15.2.21.238:8090/iserver/services/map-ugcv5-QingdaoRemoteImageMap/rest/maps/QingdaoRemoteImageMap', type: 'remote', name: '影像', icon: 'satellite_map.png' },
|
2022-07-26 15:16:28 +08:00
|
|
|
TITLE_LAYER_DARK: {
|
|
|
|
mapUrl:
|
|
|
|
'http://15.2.21.238:8090/iserver/services/map-ugcv5-shandong/rest/maps/shandong',
|
|
|
|
type: 'dark',
|
|
|
|
name: '其他',
|
|
|
|
icon: 'other_map.png',
|
|
|
|
},
|
2022-06-14 09:32:49 +08:00
|
|
|
},
|
2022-07-26 15:16:28 +08:00
|
|
|
}
|
2022-06-14 09:32:49 +08:00
|
|
|
var MAPCONFIGMIXTRE = {
|
|
|
|
CURRENT_SERVER_NAME: CONFIGKEY,
|
2022-07-26 15:16:28 +08:00
|
|
|
BUFFER_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/spatialAnalysis-' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
|
|
|
|
'/restjsr/spatialanalyst',
|
|
|
|
QUERY_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/map-HIMAP_HIGHGO/rest/maps/' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].MAP_NAME,
|
2022-06-14 09:32:49 +08:00
|
|
|
// QUERY_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/data-HIMAP_HIGHGO/rest/data/datasources/HISENSE_himap',
|
2022-07-26 15:16:28 +08:00
|
|
|
DYNAMIC_ROAD_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/spatialAnalysis-' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
|
|
|
|
'/restjsr/spatialanalyst',
|
|
|
|
DYNMIC_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/map-' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
|
|
|
|
'/rest/maps/' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].MAP_NAME,
|
2022-06-14 09:32:49 +08:00
|
|
|
// 数据库型
|
|
|
|
// NETWORK_URL: 'http://' + BASECONFIGITEM[CONFIGKEY].ISERVER_URL + '/iserver/services/transportationAnalyst-' + BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME + '/rest/networkanalyst/BuildNetwork_2@' + BASECONFIGITEM[CONFIGKEY].DATASOURCE_NAME,
|
|
|
|
// 程工系统测试环境,因为是文件型,和数据库性有区别,发布时请注意
|
2022-07-26 15:16:28 +08:00
|
|
|
NETWORK_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/transportationAnalyst-road/rest/networkanalyst/BuildNetwork_2@road',
|
|
|
|
PLOTTING_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/plot-JY/rest/plot/',
|
|
|
|
POI_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address',
|
|
|
|
EDITORDATA_URL:
|
|
|
|
'http://' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].ISERVER_URL +
|
|
|
|
'/iserver/services/data-' +
|
|
|
|
BASECONFIGITEM[CONFIGKEY].WORKPLACE_NAME +
|
|
|
|
'/rest/data',
|
2022-06-14 09:32:49 +08:00
|
|
|
ADDRESS_MATCH_URL: `http://${BASECONFIGITEM[CONFIGKEY].ISERVER_URL}/iserver/services/addressmatch-Address/restjsr/v1/address`,
|
2022-07-26 15:16:28 +08:00
|
|
|
TITLE_LAYER_ARRAY: BASECONFIGITEM[CONFIGKEY].TITLE_LAYER_ARRAY || [
|
|
|
|
BASECONFIGITEM[CONFIGKEY].TITLE_LAYER,
|
|
|
|
BASECONFIGITEM[CONFIGKEY].TITLE_LAYER_REMOTE,
|
|
|
|
BASECONFIGITEM[CONFIGKEY].TITLE_LAYER_DARK,
|
|
|
|
],
|
|
|
|
}
|
|
|
|
_mapConfig.config = Object.assign(BASECONFIGITEM[CONFIGKEY], MAPCONFIGMIXTRE)
|
|
|
|
})()
|