Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 40e66259
authored
Jul 27, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(zoneCar): 解决绘制矩形时的地图交互冲突
开启绘制模式时禁用地图拖拽与滚轮缩放,绘制完成后恢复相关操作,同时移除调试用的控制台日志
1 parent
ff59400b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/pages/monitor/zoneCar.vue
src/pages/monitor/zoneCar.vue
View file @
40e6625
...
@@ -318,12 +318,15 @@ export default {
...
@@ -318,12 +318,15 @@ export default {
"drawingManagerAddEventListener"
,
"drawingManagerAddEventListener"
,
"rectanglecomplete"
,
"rectanglecomplete"
,
function
(
e
)
{
function
(
e
)
{
console
.
log
(
e
);
_this
.
rectangle
=
e
;
_this
.
rectangle
=
e
;
let
bounds
=
e
.
getBounds
();
let
bounds
=
e
.
getBounds
();
_this
.
calculateWidthHeight
(
bounds
);
_this
.
calculateWidthHeight
(
bounds
);
// 恢复地图拖动/滚轮
mapService
.
mapInstance
.
enableDragging
();
}
}
);
);
// 绘制期间禁用地图拖动/滚轮,避免冲突
mapService
.
mapInstance
.
disableDragging
();
MAP
.
invoke
(
"setDrawingMode"
,
"rectangle"
);
MAP
.
invoke
(
"setDrawingMode"
,
"rectangle"
);
// if (_this.mouseTool) {
// if (_this.mouseTool) {
// _this.mouseTool.rectangle({
// _this.mouseTool.rectangle({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment