diff --git a/src/components/map/FeaturePropertyPopup.jsx b/src/components/map/FeaturePropertyPopup.jsx index 56f33ae..d3b959b 100644 --- a/src/components/map/FeaturePropertyPopup.jsx +++ b/src/components/map/FeaturePropertyPopup.jsx @@ -21,12 +21,19 @@ function renderProperties(feature) { }) } +function renderFeatureId(feature) { + return + + + } + function renderFeature(feature, idx) { return
{feature.layer['source-layer']}{feature.inspectModeCounter && × {feature.inspectModeCounter}}
+ {renderFeatureId(feature)} {renderProperties(feature)}
} @@ -36,7 +43,7 @@ function removeDuplicatedFeatures(features) { features.forEach(feature => { const featureIndex = uniqueFeatures.findIndex(feature2 => { - return feature.layer['source-layer'] === feature2.layer['source-layer'] + return feature.layer['source-layer'] === feature2.layer['source-layer'] && JSON.stringify(feature.properties) === JSON.stringify(feature2.properties) })