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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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