Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
75058433
Commit
75058433
authored
Jan 31, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5396e2ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Map.vue
...nts/busManagement/CharteringManagement/components/Map.vue
+11
-3
No files found.
src/components/busManagement/CharteringManagement/components/Map.vue
View file @
75058433
...
...
@@ -61,9 +61,17 @@ export default {
},
methods
:
{
getClickInfo
(
e
)
{
// console.log(e,'---')
// this.center.lng = e.point.lng
// this.center.lat = e.point.lat
let
that
=
this
var
gc
=
new
BMap
.
Geocoder
();
gc
.
getLocation
(
e
.
point
,
function
(
rs
)
{
if
(
rs
.
addressComponents
){
var
addComp
=
rs
.
addressComponents
;
let
address_detail
=
addComp
.
province
+
addComp
.
city
+
addComp
.
district
+
addComp
.
street
+
addComp
.
streetNumber
that
.
keyword
=
address_detail
}
})
this
.
center
.
lng
=
e
.
point
.
lng
this
.
center
.
lat
=
e
.
point
.
lat
},
syncCenterAndZoom
(
e
)
{
const
{
lng
,
lat
}
=
e
.
target
.
getCenter
()
...
...
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