mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-16 06:04:17 +01:00
Show type of feature in popup
This commit is contained in:
parent
75ca1fa930
commit
3a15a3bb06
1 changed files with 3 additions and 0 deletions
|
@ -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>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue