# 更新定位坐标
This commit is contained in:
parent
14a2a86635
commit
f041d52be2
|
@ -179,7 +179,7 @@ export default {
|
||||||
// 驾车路径规划
|
// 驾车路径规划
|
||||||
const driving = new AMap.Driving(drivingOptions)
|
const driving = new AMap.Driving(drivingOptions)
|
||||||
const button = document.getElementById('bt')
|
const button = document.getElementById('bt')
|
||||||
driving.search(new AMap.LngLat(113.344095, 22.673091), new AMap.LngLat(113.203460828994, 22.64902452257), (status, result) => {
|
driving.search(new AMap.LngLat(data.position.getLng(), data.position.getLat()), new AMap.LngLat(113.203460828994, 22.64902452257), (status, result) => {
|
||||||
button.onclick = () => {
|
button.onclick = () => {
|
||||||
driving.searchOnAMAP({
|
driving.searchOnAMAP({
|
||||||
origin: result.origin,
|
origin: result.origin,
|
||||||
|
|
Loading…
Reference in New Issue