Show type of feature in popup

This commit is contained in:
Lukas Martinelli 2017-01-18 10:03:15 +01:00
parent 75ca1fa930
commit 3a15a3bb06

View file

@ -23,6 +23,9 @@ function renderProperties(feature) {
function renderFeature(feature) {
return <div key={feature.id}>
<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)}
</div>
}