-.-....-.---.-- -..-......----.. ---..---.-.-..- --....-....----

This commit is contained in:
aixianling
2023-09-21 09:38:22 +08:00
parent 6c60c3439a
commit 51aa329160

View File

@@ -182,8 +182,8 @@ export default {
map.clearMap()
const center = map.getCenter()
map.on('click', () => {
map.setFitView()
map.setCenter(center)
map.setFitView()
map.setPitch(0)
this.mapDialog = false
@@ -201,7 +201,7 @@ export default {
this.mapDialog = true
this.$nextTick(() => {
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)
})
})