From 57b303555963f123519a4b5f6d96217cbd3c7cab Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 20 Feb 2025 21:39:35 +0200 Subject: [PATCH] feat(geomap): refresh map if color attribute is changed --- src/public/app/widgets/type_widgets/geo_map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/geo_map.ts b/src/public/app/widgets/type_widgets/geo_map.ts index 4579ab730..32f689e6f 100644 --- a/src/public/app/widgets/type_widgets/geo_map.ts +++ b/src/public/app/widgets/type_widgets/geo_map.ts @@ -361,7 +361,7 @@ export default class GeoMapTypeWidget extends TypeWidget { // If any of note has its location attribute changed. // TODO: Should probably filter by parent here as well. const attributeRows = loadResults.getAttributeRows(); - if (attributeRows.find((at) => at.name === LOCATION_ATTRIBUTE)) { + if (attributeRows.find((at) => [ LOCATION_ATTRIBUTE, "color" ].includes(at.name ?? ""))) { this.#reloadMarkers(); } }