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
98fa7ab2
Commit
98fa7ab2
authored
Apr 28, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.omniview.pro/yaominguo/east-nanjing-new
into dist
parents
54a46ba0
98abf5b3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
30 deletions
+2
-30
my-map.vue
src/components/MyComponent/MyMap/my-map.vue
+2
-3
index.ts
src/store/index.ts
+0
-1
mutations.ts
src/store/mutations.ts
+0
-3
state.ts
src/store/state.ts
+0
-1
community.vue
src/view/community.vue
+0
-13
map-btns.vue
src/view/components/map-btns.vue
+0
-3
useSwitchMap.ts
src/view/hooks/useSwitchMap.ts
+0
-6
No files found.
src/components/MyComponent/MyMap/my-map.vue
View file @
98fa7ab2
...
...
@@ -3,7 +3,7 @@
</
template
>
<
script
lang=
"ts"
>
import
{
computed
,
defineComponent
,
nextTick
,
onMounted
,
PropType
}
from
'vue'
import
{
computed
,
defineComponent
,
PropType
}
from
'vue'
import
store
from
'@/store'
declare
const
SMap
:
any
declare
const
Plugins
:
any
...
...
@@ -43,7 +43,7 @@ export default defineComponent({
viewMode
:
'3D'
,
center
:
[
1019.614669
,
54.167243
],
// center: [-135.98002789627407, -722.1597065437004],
zooms
:
[
7
,
12
],
zooms
:
[
7
,
20
],
zoom
:
8
,
pitch
:
45
,
mapStyle
:
'smap://styles/dark'
,
...
...
@@ -51,7 +51,6 @@ export default defineComponent({
...
config
,
...
props
.
config
,
}).
on
(
SMap
.
MapEvent
.
maploaded
,
()
=>
{
setMouseEvent
(
false
)
// setBuildingBlock()
ctx
.
emit
(
'complete'
,
map
)
addListener
()
...
...
src/store/index.ts
View file @
98fa7ab2
...
...
@@ -65,7 +65,6 @@ export interface GlobalStateProps {
curView
:
ViewType
curMapType
:
string
showCommunityPoints
:
boolean
mapDragable
:
boolean
readonly
zhenxing
:
any
readonly
weihai
:
any
readonly
workArea1
:
any
...
...
src/store/mutations.ts
View file @
98fa7ab2
...
...
@@ -26,9 +26,6 @@ export default {
SET_SHOW_COMMUNITY_POINTS
(
state
:
GlobalStateProps
,
val
:
boolean
):
void
{
state
.
showCommunityPoints
=
val
},
SET_MAP_DRAGABLE
(
state
:
GlobalStateProps
,
val
:
boolean
):
void
{
state
.
mapDragable
=
val
},
SET_PROPERTY_SUMMARY
(
state
:
GlobalStateProps
,
val
:
{
[
key
:
string
]:
number
}
...
...
src/store/state.ts
View file @
98fa7ab2
...
...
@@ -5,7 +5,6 @@ export default {
curMapType
:
'2D'
,
curView
:
{
name
:
'南京东路街道'
,
type
:
'street'
},
showCommunityPoints
:
false
,
mapDragable
:
false
,
viewOptions
:
[
{
name
:
'南京东路街道'
,
type
:
'street'
},
{
name
:
'第一工作站'
,
type
:
'work1'
,
id
:
'01001'
},
...
...
src/view/community.vue
View file @
98fa7ab2
...
...
@@ -77,14 +77,6 @@
/>
<
template
#
title
>
缩小地图
</
template
>
</a-tooltip>
<a-tooltip
placement=
"left"
>
<img
draggable=
"false"
src=
"@/assets/images/map-btn8.png"
@
click=
"setMapDrag"
/>
<
template
#
title
>
开启/关闭地图拖拽
</
template
>
</a-tooltip>
</div>
<m-modal
v-model=
"showMonitor"
...
...
@@ -371,10 +363,6 @@ export default defineComponent({
map
.
value
.
zoom
(
type
)
}
const
dragAble
=
ref
(
false
)
const
setMapDrag
=
()
=>
{
dragAble
.
value
=
!
dragAble
.
value
map
.
value
.
setMouseEvent
(
dragAble
.
value
)
}
return
{
prefix
,
rotation
,
...
...
@@ -395,7 +383,6 @@ export default defineComponent({
isCommunityPointsShowNow
,
showCommunityPoints
,
zoomMap
,
setMapDrag
,
}
},
})
...
...
src/view/components/map-btns.vue
View file @
98fa7ab2
...
...
@@ -64,7 +64,6 @@ import btn4 from '@/assets/images/map-btn4.png'
import
btn5
from
'@/assets/images/map-btn5.png'
import
btn6
from
'@/assets/images/map-btn6.png'
import
btn7
from
'@/assets/images/map-btn7.png'
import
btn8
from
'@/assets/images/map-btn8.png'
import
d2
from
'@/assets/images/2d.png'
import
d3
from
'@/assets/images/3d.png'
import
zoomIn
from
'@/assets/images/zoom-in.png'
...
...
@@ -125,8 +124,6 @@ export default defineComponent({
!
store
.
state
.
showCommunityPoints
)
break
case
'dragable'
:
store
.
commit
(
'SET_MAP_DRAGABLE'
,
!
store
.
state
.
mapDragable
)
default
:
break
}
...
...
src/view/hooks/useSwitchMap.ts
View file @
98fa7ab2
...
...
@@ -13,12 +13,6 @@ export default function useSwitchMap(map: any) {
},
{
immediate
:
true
}
)
watch
(
()
=>
store
.
state
.
mapDragable
,
(
val
)
=>
{
map
.
value
.
setMouseEvent
(
val
)
}
)
watch
(
()
=>
store
.
state
.
showCommunityPoints
,
(
val
)
=>
{
...
...
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