Regression fix

This commit is contained in:
Eric van der Vlist 2023-06-09 15:56:12 +02:00
parent c2705def86
commit 64b01bd7a5
1 changed files with 1 additions and 2 deletions

View File

@ -219,7 +219,7 @@ export const getTagType = (feature: Feature) => {
for (const tagType of Object.keys(osmTags)) { for (const tagType of Object.keys(osmTags)) {
const tag: OsmTag = osmTags[tagType]; const tag: OsmTag = osmTags[tagType];
const tagValue = feature.get(tag.name); const tagValue = feature.get(tag.name);
if (tagValue != undefined) { if (tagValue === tag.value) {
return tagType; return tagType;
} }
} }
@ -232,7 +232,6 @@ export const isHighlightedTagType = (tagType: string) => {
return currentOverlayHighlightedDefinition.includes(tagType); return currentOverlayHighlightedDefinition.includes(tagType);
}; };
const MapTilesProvider: Component<{}> = (props) => { const MapTilesProvider: Component<{}> = (props) => {
const [open, setOpen] = createSignal(false); const [open, setOpen] = createSignal(false);