From 154158742e997f7ca6af73e9b0021fe8e66be125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Viricel?= Date: Mon, 2 Dec 2024 17:14:55 +0100 Subject: [PATCH] fix(cluster): prevent changing map data if cluster is still rendering #438 --- components/MainMap/MapFeatures.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/MainMap/MapFeatures.vue b/components/MainMap/MapFeatures.vue index 218cc190..485733b5 100644 --- a/components/MainMap/MapFeatures.vue +++ b/components/MainMap/MapFeatures.vue @@ -176,7 +176,7 @@ export default defineNuxtComponent({ // Change visible data const source = this.map.getSource(POI_SOURCE) - if (source?.type === 'geojson' && 'setData' in source) { + if (source?.type === 'geojson' && 'setData' in source && !this.teritorioCluster?.ticking) { (source as GeoJSONSource).setData({ type: 'FeatureCollection', features: this.mapBase!.featuresPrepare(this.features),