Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
2554d3ff
Commit
2554d3ff
authored
Dec 23, 2022
by
liuguorong93
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx
parent
bd9e59dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
25 deletions
+39
-25
public/js/configPage/config.js
+8
-4
src/api/menuDataApi/mapSearchApi.js
+11
-1
src/views/poDogElectron/components/baseMap.vue
+20
-20
No files found.
public/js/configPage/config.js
View file @
2554d3ff
// 设置图层前缀
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
}
...
...
src/api/menuDataApi/mapSearchApi.js
View file @
2554d3ff
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
=>
...
...
src/views/poDogElectron/components/baseMap.vue
View file @
2554d3ff
...
...
@@ -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
:
698
px
;
width
:
526
px
;
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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment