Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
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
郭铭瑶
huamu
Commits
154bf41c
Commit
154bf41c
authored
Sep 30, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消楼宇描边功能加入
parent
9911d15a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
useInitMap.ts
src/hooks/useInitMap.ts
+11
-0
building-detail-drawer.vue
src/view/components/building-detail-drawer.vue
+3
-0
building-drawer.vue
src/view/components/building-drawer.vue
+3
-0
nav-bar.vue
src/view/components/nav-bar.vue
+3
-0
No files found.
src/hooks/useInitMap.ts
View file @
154bf41c
...
...
@@ -115,6 +115,9 @@ export default async function useInitMap(el: HTMLElement, camera: any) {
},
})
sceneView
.
popup
.
autoOpenEnabled
=
false
sceneView
.
when
(
function
()
{
sceneView
.
qualitySettings
.
memoryLimit
=
4096
})
window
.
sceneView
=
sceneView
// const layerList = new LayerList({
...
...
@@ -126,6 +129,7 @@ export default async function useInitMap(el: HTMLElement, camera: any) {
// content: [layerList],
// })
// window.sceneView.ui.add([layerListExpand], 'top-right')
window
.
sceneView
.
ui
.
add
([],
'top-right'
)
window
.
sceneView
.
ui
.
remove
([
'zoom'
,
...
...
@@ -253,6 +257,9 @@ export default async function useInitMap(el: HTMLElement, camera: any) {
function
addEventListener
()
{
window
.
sceneView
.
on
(
'click'
,
function
(
event
)
{
window
.
sceneView
.
popup
.
close
()
if
(
window
.
modelHighlight
)
{
window
.
modelHighlight
.
remove
()
}
window
.
sceneView
.
hitTest
(
event
).
then
(
async
function
(
response
)
{
if
(
response
.
results
.
length
>
0
)
{
const
{
layer
}
=
response
.
results
[
0
].
graphic
...
...
@@ -285,6 +292,10 @@ function addEventListener() {
'getBuildingDetail'
,
data
?.
NAME
||
data
?.
OBJECTID
,
)
}
else
{
if
(
window
.
modelHighlight
)
{
window
.
modelHighlight
.
remove
()
}
}
if
(
!
html
)
return
...
...
src/view/components/building-detail-drawer.vue
View file @
154bf41c
...
...
@@ -122,6 +122,9 @@ watch(
const closeDrawer = () => {
store.commit('SET_SHOW_BUILDING_DETAIL', false)
store.commit('SET_SHOW_TAG', true)
if (window.modelHighlight) {
window.modelHighlight.remove()
}
}
</
script
>
...
...
src/view/components/building-drawer.vue
View file @
154bf41c
...
...
@@ -146,6 +146,9 @@ const back = () => {
curBuilding
.
value
=
null
store
.
commit
(
'SET_BUILDING_DRAWER'
,
false
)
store
.
commit
(
'SET_SHOW_TAG'
,
true
)
if
(
window
.
modelHighlight
)
{
window
.
modelHighlight
.
remove
()
}
}
const
closeDrawer
=
()
=>
{
back
()
...
...
src/view/components/nav-bar.vue
View file @
154bf41c
...
...
@@ -143,6 +143,9 @@ const onClick = (type: string) => {
store
.
commit
(
'SET_BUILDING_DRAWER'
,
false
)
store
.
commit
(
'SET_SHOW_TAG'
,
false
)
store
.
commit
(
'SET_SHOW_BUILDING_DETAIL'
,
false
)
if
(
window
.
modelHighlight
)
{
window
.
modelHighlight
.
remove
()
}
switch
(
type
)
{
case
'filter'
:
store
.
commit
(
'SET_FILTER_DRAWER'
,
true
)
...
...
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