Fix issue 55626 (#55636)

Reset the mapping table for Dynamic Geojson
This commit is contained in:
Nicolas Janicaud Gondoin
2022-10-06 17:30:03 +02:00
committed by GitHub
parent 48f0f4bb91
commit c1d6df4eb7

View File

@@ -172,6 +172,7 @@ export const dynamicGeoJSONLayer: MapLayerRegistryItem<DynamicGeoJSONMapperConfi
if (frame) { if (frame) {
const field = findField(frame, config.idField); const field = findField(frame, config.idField);
if (field) { if (field) {
idToIdx.clear();
field.values.toArray().forEach((v, i) => idToIdx.set(v, i)); field.values.toArray().forEach((v, i) => idToIdx.set(v, i));
} }