Usertest: See #1315, add a 'confirm'-button on top of the precise-input location if the map is tapped; fix: make sure the dragInvitation doesn't consume the first map interaction, get's hidden by a change in map location

This commit is contained in:
Pieter Vander Vennet 2023-06-14 23:21:19 +02:00
parent cc70e09e11
commit c5c6bba731
6 changed files with 429 additions and 387 deletions

View file

@ -83,7 +83,6 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
// Workaround, 'ShowPointLayer' sets this flag
return
}
console.log(e)
const lon = e.lngLat.lng
const lat = e.lngLat.lat
lastClickLocation.setData({ lon, lat })
@ -321,10 +320,9 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
if (this.location.data === undefined) {
this.location.setData({ lon: lng, lat })
} else if (!isSetup) {
const dt = this.location.data
dt.lon = map.getCenter().lng
dt.lat = map.getCenter().lat
this.location.ping()
const lon = map.getCenter().lng
const lat = map.getCenter().lat
this.location.setData({ lon, lat })
}
this.zoom.setData(Math.round(map.getZoom() * 10) / 10)
const bounds = map.getBounds()