Commit 2554d3ff by liuguorong93

gx

parent bd9e59dd
// 设置图层前缀
let layerPrefix = 'fangzheng_jingquan_data_'
// 地图前缀
// let mapPrefix = 'http://172.18.71.238:8088/EzServer7/'
let mapPrefix = 'http://59.109.37.252/EzServer/'
var config = {
mapboxInfo: {
// 图层前缀(重要)
......@@ -14,14 +18,14 @@ var config = {
'tdtSource': {
'type': 'raster',
'tiles': [
'http://172.18.71.238:8088/EzServer7/Maps/sltdt_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
mapPrefix + 'Maps/sltdt_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
],
'tileSize': 256
},
'tilesSource': {
'type': 'raster',
'tiles': [
'http://172.18.71.238:8088/EzServer7/Maps/slzj_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
mapPrefix + 'Maps/slzj_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
],
'tileSize': 256
}
......@@ -54,14 +58,14 @@ var config = {
'yxSource': {
'type': 'raster',
'tiles': [
'http://172.18.71.238:8088/EzServer7/Maps/yxtdt_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
mapPrefix + 'Maps/yxtdt_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
],
'tileSize': 256
},
'tilesSource': {
'type': 'raster',
'tiles': [
'http://172.18.71.238:8088/EzServer7/Maps/slzj_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
mapPrefix + 'Maps/slzj_w/EzMap?Service=getImage&Type=RGB&ZoomOffset=0&Col={x}&Row={y}&Zoom={z}&V=0.3&key='
],
'tileSize': 256
}
......
import { post, postform, get, postJson } from '@/utils/http.js'
export let baseUrl = '/spatiotemporal'
export let baseUrl = ''
let env = process.env.NODE_ENV
switch (env) {
case 'development':
baseUrl = '/spatiotemporal'
break
case 'production':
baseUrl = 'http://172.18.71.227:8083'
break
}
// 全文检索服务接口
export const geoSearch = _params =>
......
......@@ -29,12 +29,12 @@ export default {
return {
selectLayerName: "shiliang",
layers: [
{
layerName: "guangzhou",
name: "广州",
icon: require("@/assets/img/layerSwitch/ditu.png"),
offset: [0, 0],
},
// {
// layerName: "guangzhou",
// name: "广州",
// icon: require("@/assets/img/layerSwitch/ditu.png"),
// offset: [0, 0],
// },
{
layerName: "yingxiang",
name: "影像",
......@@ -64,9 +64,9 @@ export default {
mounted() {},
methods: {
async getOriginalObj() {
await $.get(config.mapboxInfo.guangzhouStyleUrl, (res) => {
this.gzObj = res;
});
// await $.get(config.mapboxInfo.guangzhouStyleUrl, (res) => {
// this.gzObj = res;
// });
this.yxObj = await deepClone(config.mapboxInfo.yxtdtMapStyle);
this.darkObj = await deepClone(config.mapboxInfo.darkMapStyle);
this.slObj = await deepClone(config.mapboxInfo.tdtMapStyle);
......@@ -117,11 +117,11 @@ export default {
}
switch (item.layerName) {
case "guangzhou":
Object.assign(this.gzObj.sources, newSources);
this.gzObj.layers = this.gzObj.layers.concat(newLayers);
window.map.setStyle(this.gzObj);
break;
// case "guangzhou":
// Object.assign(this.gzObj.sources, newSources);
// this.gzObj.layers = this.gzObj.layers.concat(newLayers);
// window.map.setStyle(this.gzObj);
// break;
case "yingxiang":
Object.assign(this.yxObj.sources, newSources);
this.yxObj.layers = this.yxObj.layers.concat(newLayers);
......@@ -201,19 +201,19 @@ export default {
}
}
&:hover {
width: 698px;
width: 526px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.5);
// .baseMapClass_li:nth-child(1) {
// right: 526px;
// }
.baseMapClass_li:nth-child(1) {
right: 526px;
}
.baseMapClass_li:nth-child(2) {
right: 354px;
}
.baseMapClass_li:nth-child(3) {
.baseMapClass_li:nth-child(2) {
right: 182px;
}
.baseMapClass_li:nth-child(4) {
.baseMapClass_li:nth-child(3) {
right: 10px;
}
}
......
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