Merge pull request #610 from orangemug/fix/issue-609

Fix for stuck/unchanging pop-up in Inspect view
This commit is contained in:
Orange Mug 2020-01-30 09:22:43 +00:00 committed by GitHub
commit 1b17e8fa0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,8 @@ function renderProperties(feature) {
})
}
function renderFeature(feature) {
return <div key={`${feature.sourceLayer}-${feature.id}`}>
function renderFeature(feature, idx) {
return <div key={`${feature.sourceLayer}-${idx}`}>
<div className="maputnik-popup-layer-id">{feature.layer['source-layer']}{feature.inspectModeCounter && <span> × {feature.inspectModeCounter}</span>}</div>
<InputBlock key={"property-type"} label={"$type"}>
<StringInput value={feature.geometry.type} style={{backgroundColor: 'transparent'}} />