#16 replace hardcoded country and map_center in vue add-address by symfony config yaml variables

This commit is contained in:
2022-11-16 22:30:05 +01:00
parent 56a7833858
commit 53980dd757
8 changed files with 31 additions and 8 deletions

View File

@@ -309,8 +309,11 @@ export default {
addressMap: {
// Note: LeafletJs demands [lat, lon]
// cfr https://macwright.com/lonlat/
center : [48.8589, 2.3469],
zoom: 12
center : [
this.context.defaults.map_center.x,
this.context.defaults.map_center.y
],
zoom: this.context.defaults.map_center.z
},
},
errorMsg: []