Skip to content

Commit

Permalink
fix(cluster): prevent changing map data if cluster is still rendering #…
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Dec 2, 2024
1 parent 6ba7e1b commit 1541587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/MainMap/MapFeatures.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 1541587

Please sign in to comment.