diff --git a/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue b/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue index 41c8e96e9..89d1a2190 100644 --- a/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue +++ b/client/web/compose/src/components/ModuleFields/Editor/Geometry.vue @@ -296,7 +296,7 @@ export default { this.localValueIndex = index const firstCoordinates = (index ? this.localValue[index] : (this.field.isMulti ? this.localValue[0] : this.localValue)) || {} this.map.center = firstCoordinates.coordinates && firstCoordinates.coordinates.length ? firstCoordinates.coordinates : this.field.options.center - this.map.zoom = this.field.options.zoom + this.map.zoom = index >= 0 ? 13 : this.field.options.zoom this.map.show = true setTimeout(() => { diff --git a/client/web/compose/src/components/ModuleFields/Viewer/Geometry.vue b/client/web/compose/src/components/ModuleFields/Viewer/Geometry.vue index dd7d9fb25..237b71e8f 100644 --- a/client/web/compose/src/components/ModuleFields/Viewer/Geometry.vue +++ b/client/web/compose/src/components/ModuleFields/Viewer/Geometry.vue @@ -138,10 +138,10 @@ export default { }, methods: { - openMap (i) { - this.localValueIndex = i - this.map.center = this.localValue[i] || this.field.options.center - this.map.zoom = this.localValue[i] ? this.map.zoom : this.field.options.zoom + openMap (index) { + this.localValueIndex = index + this.map.center = this.localValue[index] || this.field.options.center + this.map.zoom = index >= 0 ? 13 : this.field.options.zoom this.map.show = true setTimeout(() => {