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
fe0e3f4e
Commit
fe0e3f4e
authored
Aug 01, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 大屏端 地图上 有居民用户时 有时鼠标拖动 地图不动问题处理。
parent
6617019e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
map.js
zh-baseversion-web/src/utils/mapClass/map.js
+2
-2
No files found.
zh-baseversion-web/src/utils/mapClass/map.js
View file @
fe0e3f4e
...
@@ -991,14 +991,14 @@ export class EditorMap {
...
@@ -991,14 +991,14 @@ export class EditorMap {
this
.
detectorUserlabelsLayer
=
new
AMap
.
LabelsLayer
({
this
.
detectorUserlabelsLayer
=
new
AMap
.
LabelsLayer
({
zooms
:
[
3
,
20
],
zooms
:
[
3
,
20
],
zIndex
:
1000
,
zIndex
:
1000
,
collision
:
tru
e
,
//该层内标注是否避让
collision
:
fals
e
,
//该层内标注是否避让
allowCollision
:
false
,
//不同标注层之间是否避让
allowCollision
:
false
,
//不同标注层之间是否避让
});
});
//设置一个图标对象
//设置一个图标对象
const
icon
=
{
const
icon
=
{
type
:
"image"
,
//图标类型,现阶段只支持 image 类型
type
:
"image"
,
//图标类型,现阶段只支持 image 类型
image
:
svgUrl
[
6
],
//可访问的图片 URL
image
:
svgUrl
[
6
],
//可访问的图片 URL
size
:
[
44
,
49
],
//图片尺寸
size
:
[
44
,
49
],
//图片尺寸
anchor
:
"center"
,
//图片相对 position 的锚点,默认为 bottom-center
anchor
:
"center"
,
//图片相对 position 的锚点,默认为 bottom-center
};
};
var
markers
=
[];
var
markers
=
[];
...
...
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