mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-26 16:50:37 +01:00
Add source name to inspect popup
This commit is contained in:
parent
857117eb71
commit
18338de21a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function renderFeatureId(feature) {
|
|||
|
||||
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>
|
||||
<div className="maputnik-popup-layer-id">{feature.layer['source']}: {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'}} />
|
||||
</InputBlock>
|
||||
|
|
Loading…
Reference in a new issue