diff --git a/src/components/MapMaplibreGlFeaturePropertyPopup.tsx b/src/components/MapMaplibreGlFeaturePropertyPopup.tsx
index d77ab0c1..cec5d504 100644
--- a/src/components/MapMaplibreGlFeaturePropertyPopup.tsx
+++ b/src/components/MapMaplibreGlFeaturePropertyPopup.tsx
@@ -19,25 +19,25 @@ function displayValue(value: string | number | Date | object) {
return value;
}
+function renderKeyValueTableRow(key: string, value: string) {
+ return
-
{feature.layer['source']}: {feature.layer['source-layer']}{feature.inspectModeCounter && × {feature.inspectModeCounter}}
-
-
$type
-
{feature.geometry.type}
-
-
-
feature_id
-
{displayValue(feature.id)}
-
+ return <>
+
+ | {feature.layer['source']}: {feature.layer['source-layer']}{feature.inspectModeCounter && × {feature.inspectModeCounter}} |
+
+ {renderKeyValueTableRow("$type", feature.geometry.type)}
+ {renderKeyValueTableRow("Feature ID", displayValue(feature.id))}
{Object.keys(feature.properties).map(propertyName => {
const property = feature.properties[propertyName];
- return
-
{propertyName}
-
{displayValue(property)}
-
+ return renderKeyValueTableRow(propertyName, displayValue(property))
})}
-
+ >
}
function removeDuplicatedFeatures(features: InspectFeature[]) {
@@ -71,7 +71,9 @@ class FeaturePropertyPopup extends React.Component