Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
283000d8
Commit
283000d8
authored
May 30, 2024
by
军师中郎将
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 大屏地图上图 居民用户 优化,只点击 居民用户以后才显示和隐藏
parent
2ce7977a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
map.js
zh-baseversion-web/src/utils/mapClass/map.js
+8
-9
No files found.
zh-baseversion-web/src/utils/mapClass/map.js
View file @
283000d8
...
...
@@ -45,7 +45,6 @@ export class EditorMap {
//用户列表图层
detectorUserlabelsLayer
=
null
;
detectorUserlabelsLayerint
=
0
;
constructor
(
contaienr
,
config
=
{},
vue
)
{
this
.
map
=
new
AMap
.
Map
(
contaienr
,
{
...
...
@@ -794,6 +793,7 @@ export class EditorMap {
}
// 设备以及公司过滤
allfilter
(
companyArr
,
typeArr
)
{
debugger
for
(
let
pipeItem
in
this
.
pipeArr
)
{
this
.
pipeArr
[
pipeItem
].
forEach
((
pipe
)
=>
{
const
data
=
pipe
.
getExtData
();
...
...
@@ -822,14 +822,13 @@ export class EditorMap {
}
});
}
if
(
this
.
detectorUserlabelsLayer
!=
null
)
{
if
(
this
.
detectorUserlabelsLayerint
===
0
)
{
// 判断是否需要显示 居民用户
const
detectorUserHas
=
typeArr
.
indexOf
(
6
)
>=
0
;
if
(
detectorUserHas
)
{
this
.
detectorUserlabelsLayer
.
show
();
this
.
detectorUserlabelsLayerint
=
1
;
}
else
{
this
.
detectorUserlabelsLayer
.
hide
();
this
.
detectorUserlabelsLayerint
=
0
;
}
}
}
// 普通调用方法
...
...
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