Fix issue 55626 (#55636) (#56483)

Reset the mapping table for Dynamic Geojson

(cherry picked from commit c1d6df4eb7)

Co-authored-by: Nicolas Janicaud Gondoin <112407974+janicaud@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot) 2022-10-06 17:44:39 +02:00 committed by GitHub
parent ece17f30ab
commit f6d7f7dec6
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));
}