address: zoom to postal code

This commit is contained in:
nobohan
2021-10-08 14:50:09 +02:00
parent 78f66d4f14
commit cae3defedb
2 changed files with 5 additions and 2 deletions

View File

@@ -31,6 +31,7 @@
<city-selection
v-bind:entity="entity"
v-bind:focusOnAddress="focusOnAddress"
v-bind:updateMapCenter="updateMapCenter"
@getReferenceAddresses="$emit('getReferenceAddresses', selected.city)">
</city-selection>
@@ -135,7 +136,7 @@ export default {
}
},
updateMapCenter(point) {
//console.log('point', point);
console.log('point', point);
this.addressMap.center[0] = point.coordinates[1]; // TODO use reverse()
this.addressMap.center[1] = point.coordinates[0];
this.$refs.addressMap.update(); // cast child methods