mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +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() {
|
update() {
|
||||||
console.log('update map with : ', this.address.addressMap.center)
|
console.log('update map with : ', this.address.addressMap.center)
|
||||||
marker.setLatLng(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(){
|
mounted(){
|
||||||
|
@ -40,10 +40,8 @@ const store = createStore({
|
|||||||
if('newPostalCode' in payload){
|
if('newPostalCode' in payload){
|
||||||
postPostalCode(payload.newPostalCode)
|
postPostalCode(payload.newPostalCode)
|
||||||
.then(postalCode => {
|
.then(postalCode => {
|
||||||
console.log(postalCode);
|
|
||||||
let body = payload;
|
let body = payload;
|
||||||
body.postcode = {'id': postalCode.id },
|
body.postcode = {'id': postalCode.id },
|
||||||
console.log(body);
|
|
||||||
postAddress(body)
|
postAddress(body)
|
||||||
.then(address => new Promise((resolve, reject) => {
|
.then(address => new Promise((resolve, reject) => {
|
||||||
commit('addAddress', address);
|
commit('addAddress', address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user