From 64b01bd7a54660c96639589ac5ddf89443e41458 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Fri, 9 Jun 2023 15:56:12 +0200 Subject: [PATCH] Regression fix --- src/components/map-tile-provider/MapTileProvider.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/map-tile-provider/MapTileProvider.tsx b/src/components/map-tile-provider/MapTileProvider.tsx index c1038fd..8f287fe 100644 --- a/src/components/map-tile-provider/MapTileProvider.tsx +++ b/src/components/map-tile-provider/MapTileProvider.tsx @@ -219,7 +219,7 @@ export const getTagType = (feature: Feature) => { for (const tagType of Object.keys(osmTags)) { const tag: OsmTag = osmTags[tagType]; const tagValue = feature.get(tag.name); - if (tagValue != undefined) { + if (tagValue === tag.value) { return tagType; } } @@ -232,7 +232,6 @@ export const isHighlightedTagType = (tagType: string) => { return currentOverlayHighlightedDefinition.includes(tagType); }; - const MapTilesProvider: Component<{}> = (props) => { const [open, setOpen] = createSignal(false);