mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
address: better default zoom when choosing an address
This commit is contained in:
parent
1b709d39a4
commit
f22461af1b
@ -40,7 +40,7 @@ export default {
|
||||
update() {
|
||||
console.log('update map with : ', this.address.addressMap.center)
|
||||
marker.setLatLng(this.address.addressMap.center);
|
||||
map.setView(this.address.addressMap.center, 12);
|
||||
map.setView(this.address.addressMap.center, 15);
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
|
@ -40,10 +40,8 @@ const store = createStore({
|
||||
if('newPostalCode' in payload){
|
||||
postPostalCode(payload.newPostalCode)
|
||||
.then(postalCode => {
|
||||
console.log(postalCode);
|
||||
let body = payload;
|
||||
body.postcode = {'id': postalCode.id },
|
||||
console.log(body);
|
||||
postAddress(body)
|
||||
.then(address => new Promise((resolve, reject) => {
|
||||
commit('addAddress', address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user