Commit 59d23c3a by liuguorong93

地址更改

parent 2554d3ff
// 设置图层前缀
let layerPrefix = 'fangzheng_jingquan_data_'
// 地图前缀
// let mapPrefix = 'http://172.18.71.238:8088/EzServer7/'
let mapPrefix = 'http://59.109.37.252/EzServer/'
// 地图前缀(内网)
let mapPrefix = 'http://172.18.71.238:8088/EzServer7/'
let mapResPrefix = 'http://172.18.71.238:8088/MapRes_/'
// 辖区组件(内网)
let clientUrl = 'http://172.18.71.238:8082/zzjgModelV1'
// 地图前缀(公司对外)
// let mapPrefix = 'http://59.109.37.252/EzServer/'
// let mapResPrefix = 'http://59.109.37.252/vtserver/'
// 辖区组件(公司对外)
// let clientUrl = 'http://59.109.37.252/zzjgModelV1'
var config = {
clientUrl,
mapboxInfo: {
// 图层前缀(重要)
layerPrefix,
......@@ -48,8 +59,8 @@ var config = {
}
}
],
'sprite': 'http://172.18.71.238:8088/MapRes_/sprites/sprite_baidu',
'glyphs': 'http://172.18.71.238:8088/MapRes_/fonts/{fontstack}/{range}.pbf'
'sprite': mapResPrefix + 'sprites/sprite_baidu',
'glyphs': mapResPrefix + 'fonts/{fontstack}/{range}.pbf'
},
// 影像
yxtdtMapStyle: {
......@@ -88,8 +99,8 @@ var config = {
}
}
],
'sprite': 'http://172.18.71.238:8088/MapRes_/sprites/sprite_baidu',
'glyphs': 'http://172.18.71.238:8088/MapRes_/fonts/{fontstack}/{range}.pbf'
'sprite': mapResPrefix + 'sprites/sprite_baidu',
'glyphs': mapResPrefix + 'fonts/{fontstack}/{range}.pbf'
},
// 深色
darkMapStyle: {
......@@ -114,8 +125,8 @@ var config = {
}
},
],
'sprite': 'http://172.18.71.238:8088/MapRes_/sprites/sprite_baidu',
'glyphs': 'http://172.18.71.238:8088/MapRes_/fonts/{fontstack}/{range}.pbf'
'sprite': mapResPrefix + 'sprites/sprite_baidu',
'glyphs': mapResPrefix + 'fonts/{fontstack}/{range}.pbf'
},
// 广州
guangzhouStyleUrl: 'http://172.18.71.238:8088/vtserver/styles/guangzhou_bai.json',
......@@ -129,5 +140,12 @@ var config = {
sourceName: layerPrefix + 'multiple_point_source',
layerName: layerPrefix + 'multiple_point_layer'
},
}
},
mapDataType: [
{
id: "b35c4e5f06904c6f9f9a38d2f5bc992f",
name: "全国POI地址",
relationLayer: "fz_name_swpoi",
},
]
}
\ No newline at end of file
......@@ -22,7 +22,7 @@
v-show="showSelectBox"
>
<li
class="s_li"
class="s_li ellipsis1"
:class="item.id === currentId ? 'current' : ''"
v-for="(item) in seList"
:key="item.id"
......@@ -97,26 +97,7 @@ export default {
},
methods: {
getDataTypeFun() {
let datas = [
{
createTime: "2022-06-28 16:33:50",
description: null,
id: "b35c4e5f06904c6f9f9a38d2f5bc992f",
name: "全国POI地址",
relationLayer: "fz_name_swpoi",
sort: 1,
updateTime: "2022-09-27 10:05:23",
},
// {
// createTime: "2022-06-28 16:34:19",
// description: "描述信息",
// id: "917cfac35fa14db4a62e236903d50831",
// name: "AOI数据",
// relationLayer: "PGIS_SX_DZSX_DH_PT_AOI",
// sort: 2,
// updateTime: "2022-09-27 10:05:27",
// },
];
let datas = config.mapDataType;
let allRelationLayer = "";
datas.forEach((item) => {
allRelationLayer = allRelationLayer + item.relationLayer + ",";
......
......@@ -28,7 +28,7 @@ export default {
{ id: "2", cname: "省", zoom: 7, zzjglx: 11 },
{ id: "3", cname: "市", zoom: 10, zzjglx: 12 },
];
var clientUrl = "http://172.18.71.238:8082/zzjgModelV1";
var clientUrl = config.clientUrl;
/*//初始化组织机构模块*/
var zzjgParams = {
map: window.map,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment