This commit is contained in:
HarelM
2024-02-04 18:07:43 +02:00
parent 2a3b6aa770
commit 285dca8d2c
@@ -32,10 +32,10 @@ function renderFeature(feature: InspectFeature, idx: number) {
</div> </div>
{Object.keys(feature.properties).map(propertyName => { {Object.keys(feature.properties).map(propertyName => {
const property = feature.properties[propertyName]; const property = feature.properties[propertyName];
return <div className="maputnik-popup-layer"> return <div key={propertyName} className="maputnik-popup-layer">
<div className="maputnik-popup-feature-left">{propertyName}</div> <div className="maputnik-popup-feature-left">{propertyName}</div>
<div className="maputnik-popup-feature-right">{displayValue(property)}</div> <div className="maputnik-popup-feature-right">{displayValue(property)}</div>
</div> </div>
})} })}
</div> </div>
} }