mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 21:40:01 +00:00
Show type of feature in popup
This commit is contained in:
@@ -23,6 +23,9 @@ function renderProperties(feature) {
|
|||||||
function renderFeature(feature) {
|
function renderFeature(feature) {
|
||||||
return <div key={feature.id}>
|
return <div key={feature.id}>
|
||||||
<div className="maputnik-popup-layer-id">{feature.layer['source-layer']}</div>
|
<div className="maputnik-popup-layer-id">{feature.layer['source-layer']}</div>
|
||||||
|
<InputBlock key={"property-type"} label={"$type"}>
|
||||||
|
<StringInput value={feature.geometry.type} style={{backgroundColor: 'transparent'}} />
|
||||||
|
</InputBlock>
|
||||||
{renderProperties(feature)}
|
{renderProperties(feature)}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user