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 73ebb068
authored
Dec 01, 2023
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.27.0' into 'develop'
V1.27.0 See merge request
!43
2 parents
72791e7d
937e3250
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
src/utils/mapService.js
src/utils/monitor.js
src/utils/mapService.js
View file @
73ebb06
...
...
@@ -385,7 +385,7 @@ MapService.prototype = {
infoDiv
.
querySelector
(
'[data-time'
).
setAttribute
(
'aria-label'
,
eLocation
.
dateTime
);
EventBus
.
$emit
(
'uiMap.monitor.changeELocate'
,
info
)
EventBus
.
$emit
(
'uiMap.monitor.drawDone'
);
self
.
setFitView
()
//
self.setFitView()
})
// gps
...
...
@@ -410,7 +410,7 @@ MapService.prototype = {
infoDiv
.
querySelector
(
'[data-time'
).
setAttribute
(
'aria-label'
,
eLocation
.
dateTime
);
EventBus
.
$emit
(
'uiMap.monitor.changeELocate'
,
info
)
EventBus
.
$emit
(
'uiMap.monitor.drawDone'
);
self
.
setFitView
()
//
self.setFitView()
})
...
...
src/utils/monitor.js
View file @
73ebb06
...
...
@@ -87,7 +87,7 @@ const monitor = {
const
MAP
=
mapService
.
map
;
const
lnglat
=
this
.
markers
[
snSourceType
].
getPosition
();
this
.
infowins
[
snSourceType
].
open
(
MAP
,
lnglat
);
MAP
.
setZoomAndCenter
(
MAP
.
getZoom
(),
lnglat
);
MAP
.
setZoomAndCenter
(
MAP
.
getZoom
(),
lnglat
,
true
);
}
});
...
...
@@ -164,6 +164,7 @@ const monitor = {
})
MAPGEO
.
transferAddressByGroup
({
data
:
transferObj
},
()
=>
{
this
.
data
.
forEach
((
item
,
idx
)
=>
{
let
eLocation
=
item
[
item
.
eLocateType
];
if
(
!
eLocation
.
elng
&&
!
eLocation
.
elat
)
return
;
...
...
@@ -201,9 +202,18 @@ const monitor = {
});
mapService
.
setFitView
(
MAP
);
// v1.27.0 去掉动画
//mapService.setFitView(MAP,false);
// let _markers = [];
// let _markersObj = this.markers;
// for(let k in _markersObj){
// _markers.push(_markersObj[k])
// }
//MAP.setFitView(_markers,true);
this
.
allData
=
this
.
allData
.
concat
(
data
);
EventBus
.
$emit
(
'uiMap.monitor.drawDone'
);
console
.
log
(
'是否需要对比:'
,
this
.
isCompare
)
if
(
this
.
isCompare
)
{
this
.
compareLocation
(
true
)
}
...
...
@@ -325,7 +335,7 @@ const monitor = {
const
MAP
=
mapService
.
map
const
lnglat
=
makers
.
getPosition
()
infoWindow
.
open
(
MAP
,
lnglat
)
MAP
.
setZoomAndCenter
(
MAP
.
getZoom
(),
lnglat
)
MAP
.
setZoomAndCenter
(
MAP
.
getZoom
(),
lnglat
,
true
)
}
}
...
...
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