-.-....-.---.-- -..-......----.. ---..---.-.-..- --....-....----
This commit is contained in:
@@ -182,8 +182,8 @@ export default {
|
|||||||
map.clearMap()
|
map.clearMap()
|
||||||
const center = map.getCenter()
|
const center = map.getCenter()
|
||||||
map.on('click', () => {
|
map.on('click', () => {
|
||||||
map.setFitView()
|
|
||||||
map.setCenter(center)
|
map.setCenter(center)
|
||||||
|
map.setFitView()
|
||||||
map.setPitch(0)
|
map.setPitch(0)
|
||||||
|
|
||||||
this.mapDialog = false
|
this.mapDialog = false
|
||||||
@@ -201,7 +201,7 @@ export default {
|
|||||||
this.mapDialog = true
|
this.mapDialog = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.mapInfoWin.innerHTML = e.infoWindowHtml || [`<div class="infoWin">`, `<b>${e.label}</b>`, '</div>'].join('')
|
this.$refs.mapInfoWin.innerHTML = e.infoWindowHtml || [`<div class="infoWin">`, `<b>${e.label}</b>`, '</div>'].join('')
|
||||||
map.setCenter(16, [e.lng, e.lat])
|
map.setZoomAndCenter(16, [e.lng, e.lat])
|
||||||
map.setPitch(60)
|
map.setPitch(60)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user