Skip to content

Commit 880b909

Browse files
committed
Disable map's reset to center on large zoom levels.
1 parent 09f16e7 commit 880b909

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/widgets/LivelihoodZonesMap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default {
123123
124124
this.selectedIsland = this.getIslandFromRegion(this.selectedRegion)
125125
this.getProvinceOptions()
126-
this.resetMapView()
126+
// this.resetMapView()
127127
128128
// Hide the previous selected region
129129
if (this.previousIsland) {
@@ -181,7 +181,7 @@ export default {
181181
? this.hardCodedNames[this.selectedProvince]
182182
: this.camelCase(this.selectedProvince)
183183
184-
this.resetMapView()
184+
// this.resetMapView()
185185
window.MBL.setLayerFilter(`${this.selectedIsland}-layer`, {
186186
key: 'ADM2_EN',
187187
value: provinceValue

0 commit comments

Comments
 (0)