Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
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 dab79b0f
authored
Jul 28, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
找车浮窗 向下偏移
1 parent
7dbf6156
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/views/index.vue
src/views/index.vue
View file @
dab79b0
...
@@ -460,6 +460,7 @@ export default defineComponent({
...
@@ -460,6 +460,7 @@ export default defineComponent({
marker
.
setPosition
(
newLnglat
);
marker
.
setPosition
(
newLnglat
);
infoWindow
.
setPosition
(
newLnglat
);
infoWindow
.
setPosition
(
newLnglat
);
map
.
setCenter
(
newLnglat
);
map
.
setCenter
(
newLnglat
);
map
.
panBy
(
0
,
50
);
};
};
//信息窗体内容更新
//信息窗体内容更新
let
GPSBtn
=
infoDiv
.
querySelector
(
"[data-GPS]"
);
let
GPSBtn
=
infoDiv
.
querySelector
(
"[data-GPS]"
);
...
@@ -504,6 +505,7 @@ export default defineComponent({
...
@@ -504,6 +505,7 @@ export default defineComponent({
item
.
locationType
=
"gpsLocation"
;
item
.
locationType
=
"gpsLocation"
;
setAddress
();
setAddress
();
move
(
newLnglat
);
move
(
newLnglat
);
console
.
log
(
newLnglat
);
}
else
{
}
else
{
Toast
(
"暂无GPS定位信息"
);
Toast
(
"暂无GPS定位信息"
);
}
}
...
@@ -523,6 +525,7 @@ export default defineComponent({
...
@@ -523,6 +525,7 @@ export default defineComponent({
gprsObj
.
elng
,
gprsObj
.
elng
,
gprsObj
.
elat
gprsObj
.
elat
);
);
console
.
log
(
newLnglat
);
setAddress
();
setAddress
();
move
(
newLnglat
);
move
(
newLnglat
);
}
else
{
}
else
{
...
@@ -636,6 +639,7 @@ export default defineComponent({
...
@@ -636,6 +639,7 @@ export default defineComponent({
//点击车辆打开信息窗体
//点击车辆打开信息窗体
marker
.
on
(
"click"
,
()
=>
{
marker
.
on
(
"click"
,
()
=>
{
map
.
setCenter
(
infoWindow
.
getPosition
());
map
.
setCenter
(
infoWindow
.
getPosition
());
map
.
panBy
(
0
,
50
);
if
(
infoWindow
.
getIsOpen
())
{
if
(
infoWindow
.
getIsOpen
())
{
infoWindow
.
close
();
infoWindow
.
close
();
}
else
{
}
else
{
...
...
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