Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
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
郭铭瑶
east-nanjing-new
Commits
89635b83
Commit
89635b83
authored
Apr 19, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新地图
parent
13d74aeb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
SMap.min.js
public/SMap.min.js
+1
-1
useSwitchMap.ts
src/view/hooks/useSwitchMap.ts
+4
-1
No files found.
public/SMap.min.js
View file @
89635b83
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/view/hooks/useSwitchMap.ts
View file @
89635b83
...
...
@@ -44,18 +44,22 @@ export default function useSwitchMap(map: any) {
switch
(
type
)
{
case
'work1'
:
show
&&
showPoints
({
gridId
:
store
.
state
.
workArea1
.
id
})
map
.
value
.
addBoundary
({
name
:
'第一工作站'
,
color
:
'rgba(0,0,0,0)'
})
map
.
value
.
focus
(...
store
.
state
.
workArea1
.
center
,
8
)
break
case
'work2'
:
show
&&
showPoints
({
gridId
:
store
.
state
.
workArea2
.
id
})
map
.
value
.
addBoundary
({
name
:
'第二工作站'
,
color
:
'rgba(0,0,0,0)'
})
map
.
value
.
focus
(...
store
.
state
.
workArea2
.
center
,
8
)
break
case
'work3'
:
show
&&
showPoints
({
gridId
:
store
.
state
.
workArea3
.
id
})
map
.
value
.
addBoundary
({
name
:
'第三工作站'
,
color
:
'rgba(0,0,0,0)'
})
map
.
value
.
focus
(...
store
.
state
.
workArea3
.
center
,
8
)
break
case
'street'
:
show
&&
showPoints
()
map
.
value
.
addBoundary
({
name
:
'南京东路街道'
,
color
:
'rgba(0,0,0,0)'
})
map
.
value
.
focus
(
207.9006154792994
,
71.67111885454233
,
8
)
break
default
:
...
...
@@ -71,7 +75,6 @@ export default function useSwitchMap(map: any) {
}
const
handleMapComplete
=
async
()
=>
{
map
.
value
.
addBoundary
({
name
:
'南京东路街道'
,
color
:
'rgba(0,0,0,0)'
})
setPoints
(
curViewType
.
value
)
if
(
curMapType
.
value
===
'3D'
)
{
if
(
curViewType
.
value
===
'work1'
)
{
...
...
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