Skip to content

Commit d6f87bf

Browse files
Add OSM Id to GeoJsonLayer
1 parent 46a8371 commit d6f87bf

File tree

1 file changed

+1
-1
lines changed
  • apps/osm-merge/src/hooks

1 file changed

+1
-1
lines changed

apps/osm-merge/src/hooks/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export function useSelectedEntityLayer(osm?: Osm | null) {
278278
if (!osm || !selectedEntity) return null
279279
const geojson = osm.getEntityGeoJson(selectedEntity)
280280
return new GeoJsonLayer({
281-
id: `${APPID}:selected-entity`,
281+
id: `${APPID}:${osm.id}:selected-entity`,
282282
data: geojson,
283283
getLineColor: [255, 0, 0, 255],
284284
getLineWidth: 3,

0 commit comments

Comments
 (0)