diff --git a/packages/geoview-core/public/datasets/geojson/metadata1.meta b/packages/geoview-core/public/datasets/geojson/metadata1.meta index 6d296257d9b..b2cba0443f2 100644 --- a/packages/geoview-core/public/datasets/geojson/metadata1.meta +++ b/packages/geoview-core/public/datasets/geojson/metadata1.meta @@ -10,13 +10,11 @@ "queryable": true, "nameField": "Project", "outfields": [ - [ - { "name": "program", "alias": "Program", "type": "string", "domain": null }, - { "name": "project_id", "alias": "Project ID", "type": "string", "domain": null }, - { "name": "geom_type", "alias": "Geometry type", "type": "string", "domain": null }, - { "name": "geom_area", "alias": "Geometry area", "type": "string", "domain": null }, - { "name": "SRID", "alias": "SRID", "type": "string", "domain": null } - ] + { "name": "program", "alias": "Program", "type": "string", "domain": null }, + { "name": "project_id", "alias": "Project ID", "type": "string", "domain": null }, + { "name": "geom_type", "alias": "Geometry type", "type": "string", "domain": null }, + { "name": "geom_area", "alias": "Geometry area", "type": "string", "domain": null }, + { "name": "SRID", "alias": "SRID", "type": "string", "domain": null } ] } }, diff --git a/packages/geoview-core/public/datasets/geojson/processes-metadata.meta b/packages/geoview-core/public/datasets/geojson/processes-metadata.meta index 952a1630f62..ceab5ef0b77 100644 --- a/packages/geoview-core/public/datasets/geojson/processes-metadata.meta +++ b/packages/geoview-core/public/datasets/geojson/processes-metadata.meta @@ -24,19 +24,17 @@ "queryable": "true", "nameField": "label_en", "outfields": [ - [ - { "name": "label_en", "alias": "label_en", "type": "string", "domain": null }, - { "name": "percentile_en", "alias": "percentile_en", "type": "string", "domain": null }, - { "name": "period_en", "alias": "period_en", "type": "string", "domain": null }, - { "name": "scenario_en", "alias": "scenario_en", "type": "string", "domain": null }, - { "name": "time_begin", "alias": "time_begin", "type": "date", "domain": null }, - { "name": "time_end", "alias": "time_end Date", "type": "date", "domain": null }, - { "name": "time_step", "alias": "time_step", "type": "string", "domain": null }, - { "name": "uom", "alias": "uom", "type": "string", "domain": null }, - { "name": "value_type_en", "alias": "value_type_en", "type": "string", "domain": null }, - { "name": "variable_en", "alias": "variable_en", "type": "string", "domain": null }, - { "name": "values", "alias": "values", "type": "number", "domain": null } - ] + { "name": "label_en", "alias": "label_en", "type": "string", "domain": null }, + { "name": "percentile_en", "alias": "percentile_en", "type": "string", "domain": null }, + { "name": "period_en", "alias": "period_en", "type": "string", "domain": null }, + { "name": "scenario_en", "alias": "scenario_en", "type": "string", "domain": null }, + { "name": "time_begin", "alias": "time_begin", "type": "date", "domain": null }, + { "name": "time_end", "alias": "time_end Date", "type": "date", "domain": null }, + { "name": "time_step", "alias": "time_step", "type": "string", "domain": null }, + { "name": "uom", "alias": "uom", "type": "string", "domain": null }, + { "name": "value_type_en", "alias": "value_type_en", "type": "string", "domain": null }, + { "name": "variable_en", "alias": "variable_en", "type": "string", "domain": null }, + { "name": "values", "alias": "values", "type": "number", "domain": null } ] } }, diff --git a/packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts b/packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts index c901d6709bc..a7dac1dda10 100644 --- a/packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts +++ b/packages/geoview-core/src/geo/layer/gv-layers/abstract-gv-layer.ts @@ -578,10 +578,8 @@ export abstract class AbstractGVLayer extends AbstractBaseLayer { dictFieldTypes[fieldName] = this.getFieldType(fieldName); } const fieldType = dictFieldTypes[fieldName]; - - if (outfields?.find((outfield) => outfield.name === fieldName)) { - const fieldEntry = outfields.find((outfield) => outfield.name === fieldName); - + const fieldEntry = outfields?.find((outfield) => outfield.name === fieldName); + if (fieldEntry) { featureInfoEntry.fieldInfo[fieldName] = { fieldKey: fieldKeyCounter++, value: this.getFieldValue(feature, fieldName, fieldEntry!.type as 'string' | 'number' | 'date'),