adds overpass icons

This commit is contained in:
Christian Beutel
2025-07-18 21:42:16 +02:00
parent f46f8055c4
commit 6a908a3ace
44 changed files with 610 additions and 46 deletions

View File

@@ -257,8 +257,9 @@ export function createPopupFromTrail(trail: Trail) {
return popup;
}
export function createOverpassPopup(tags: Record<string, string>, coordinates: GeoJSON.Position) {
const name = tags.name ?? "?"
export function createOverpassPopup(feature: GeoJSON.Feature, coordinates: GeoJSON.Position) {
const tags: Record<string, string> = JSON.parse(feature.properties?.tags);
const name = tags.name ?? get(_)(feature.properties?.query) ?? "?"
const popupContainer = document.createElement("div");
popupContainer.className = "p-4"