Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
耿迪迪
gassafety
Commits
d09e6251
Commit
d09e6251
authored
Sep 16, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图背景样式提取
parent
7a4cd5d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
gaodeMapDialog.js
gassafety-web/src/components/mapDialog/js/gaodeMapDialog.js
+4
-1
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+2
-2
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+2
-3
mapCommon.js
gassafety-web/src/utils/mapCommon.js
+2
-1
No files found.
gassafety-web/src/components/mapDialog/js/gaodeMapDialog.js
View file @
d09e6251
...
@@ -9,6 +9,8 @@ import { delDeviceInfo } from "@/api/device/deviceInfo";
...
@@ -9,6 +9,8 @@ import { delDeviceInfo } from "@/api/device/deviceInfo";
import
markerInfoWindow
from
"@/components/PopWindow/markerInfoWindow.vue"
;
import
markerInfoWindow
from
"@/components/PopWindow/markerInfoWindow.vue"
;
import
{
getArray
}
from
"@/utils/gassafety.js"
;
import
{
getArray
}
from
"@/utils/gassafety.js"
;
import
{
delPipe
}
from
"@/api/device/pipe.js"
;
import
{
delPipe
}
from
"@/api/device/pipe.js"
;
import
{
lineColor
,
mapStyle
}
from
"@/utils/mapCommon.js"
;
import
vue
from
"@/main"
;
import
vue
from
"@/main"
;
let
defaultCenter
=
"石家庄"
;
let
defaultCenter
=
"石家庄"
;
export
let
map
;
export
let
map
;
...
@@ -48,7 +50,8 @@ class gaodeMap {
...
@@ -48,7 +50,8 @@ class gaodeMap {
showLabel
:
true
,
showLabel
:
true
,
// labelzIndex: 110,
// labelzIndex: 110,
pitch
:
8
,
pitch
:
8
,
zoom
:
12
zoom
:
12
,
mapStyle
,
//mapStyle: 'amap://styles/darkblue',
//mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
});
});
...
...
gassafety-web/src/utils/gaodeMap.js
View file @
d09e6251
import
createPop
from
"./createPop"
;
import
createPop
from
"./createPop"
;
import
{
lineColor
}
from
"./mapCommon.js"
;
import
{
lineColor
,
mapStyle
}
from
"./mapCommon.js"
;
import
regulatorBox
from
"../components/PopWindow/regulatorBox.vue"
;
import
regulatorBox
from
"../components/PopWindow/regulatorBox.vue"
;
import
valveWell
from
"../components/PopWindow/valveWell.vue"
;
import
valveWell
from
"../components/PopWindow/valveWell.vue"
;
import
flowMeter
from
"../components/PopWindow/flowMeter.vue"
;
import
flowMeter
from
"../components/PopWindow/flowMeter.vue"
;
...
@@ -56,7 +56,7 @@ class gaodeMap {
...
@@ -56,7 +56,7 @@ class gaodeMap {
// labelzIndex: 110,
// labelzIndex: 110,
pitch
:
8
,
pitch
:
8
,
zoom
:
9
,
zoom
:
9
,
mapStyle
:
"amap://styles/1c84d2203793b0f622df2cda53db1afd"
mapStyle
,
// mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
// mapStyle: 'amap://styles/3b679a15f448a4740ba2ff7524e1a4ae',
});
});
...
...
gassafety-web/src/utils/gaodeMapView.js
View file @
d09e6251
...
@@ -15,7 +15,7 @@ import workerManInfowindow from "../components/PopWindowGis/workerManInfowindow.
...
@@ -15,7 +15,7 @@ import workerManInfowindow from "../components/PopWindowGis/workerManInfowindow.
import
workerManView
from
"../components/PopWindowGis/workerManView.vue"
;
import
workerManView
from
"../components/PopWindowGis/workerManView.vue"
;
import
{
getArray
}
from
"@/utils/gassafety.js"
;
import
{
getArray
}
from
"@/utils/gassafety.js"
;
import
{
lineColor
}
from
"./mapCommon.js"
;
import
{
lineColor
,
mapStyle
}
from
"./mapCommon.js"
;
import
{
delPipe
}
from
"@/api/device/pipe.js"
;
import
{
delPipe
}
from
"@/api/device/pipe.js"
;
import
vue
from
"../main"
;
import
vue
from
"../main"
;
import
{
Card
}
from
"element-ui"
;
import
{
Card
}
from
"element-ui"
;
...
@@ -73,7 +73,7 @@ class gaodeMap {
...
@@ -73,7 +73,7 @@ class gaodeMap {
pitch
:
8
,
pitch
:
8
,
zoom
:
9
,
zoom
:
9
,
//mapStyle: 'amap://styles/darkblue',
//mapStyle: 'amap://styles/darkblue',
mapStyle
:
"amap://styles/1c84d2203793b0f622df2cda53db1afd"
mapStyle
,
});
});
this
.
myMap
=
map
;
this
.
myMap
=
map
;
this
.
myMap
.
on
(
"mousedown"
,
e
=>
{
this
.
myMap
.
on
(
"mousedown"
,
e
=>
{
...
@@ -105,7 +105,6 @@ class gaodeMap {
...
@@ -105,7 +105,6 @@ class gaodeMap {
// console.log("地图平移");
// console.log("地图平移");
// 如果这个值为真,下面都不执行,trac用的,第一额值班人员的infowindow显示的时候被消掉了
// 如果这个值为真,下面都不执行,trac用的,第一额值班人员的infowindow显示的时候被消掉了
if
(
this
.
tracMoveFlag
)
return
;
if
(
this
.
tracMoveFlag
)
return
;
if
(
this
.
leftListClick
)
{
if
(
this
.
leftListClick
)
{
console
.
log
(
"moveStart"
);
console
.
log
(
"moveStart"
);
this
.
closeInfoWindow
();
this
.
closeInfoWindow
();
...
...
gassafety-web/src/utils/mapCommon.js
View file @
d09e6251
...
@@ -5,4 +5,5 @@
...
@@ -5,4 +5,5 @@
"2"
:
"#FFFFFF"
,
"2"
:
"#FFFFFF"
,
"3"
:
"#18FF0F"
,
"3"
:
"#18FF0F"
,
"4"
:
"#DE67FA"
"4"
:
"#DE67FA"
}
}
\ No newline at end of file
export
const
mapStyle
=
"amap://styles/1c84d2203793b0f622df2cda53db1afd"
;
\ No newline at end of file
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