Update feature id label to $id in feature properties popup (#912)

Current label, "Feature ID", creates a little bit of confusion. It's not
clear that this label isn't really part of the feature properties.

For example, when we want to filter by feature id, we need to use `$id`

```
[==, "$id," 123] 
```
This commit is contained in:
Kacper Golinski authored and GitHub committed 2024-07-12 21:18:23 +03:00
1 parent 0de304ca3e
commit d0f6e0fadb
1 file changed
+1 -1
@@ -28,7 +28,7 @@ function renderFeature(feature: InspectFeature, idx: number) {
<td colSpan={2} className="maputnik-popup-layer-id">{feature.layer['source']}: {feature.layer['source-layer']}{feature.inspectModeCounter && <span> × {feature.inspectModeCounter}</span>}</td>
</tr>
{renderKeyValueTableRow("$type", feature.geometry.type)}
{renderKeyValueTableRow("Feature ID", displayValue(feature.id))}
{renderKeyValueTableRow("$id", displayValue(feature.id))}
{Object.keys(feature.properties).map(propertyName => {
const property = feature.properties[propertyName];
return renderKeyValueTableRow(propertyName, displayValue(property))