From f4f5a0342b3d767a535febffcf9b9a1184c19ea5 Mon Sep 17 00:00:00 2001 From: Eric Theise Date: Wed, 19 Jun 2024 17:26:05 -0700 Subject: [PATCH] Fixes https://github.com/OpenHistoricalMap/issues/issues/830 by correcting popup links. Also fixes a few similar but yet to be discovered links and introduces versioning into our package.json. --- js/ide.ts | 2 +- js/nominatim.ts | 4 ++-- js/popup.ts | 18 +++++++++--------- package.json | 5 +++-- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/js/ide.ts b/js/ide.ts index 1c11ca05..2527f04a 100644 --- a/js/ide.ts +++ b/js/ide.ts @@ -1671,7 +1671,7 @@ class IDE { .bind("click", () => { const content = `

${i18n.t("export.map_view.permalink")}

` + - `

Node` + - ` ${feature.properties.id}` + - ` ` + + ` ${feature.properties.id}` + + ` ` + ``; else if (feature.properties.type == "way") popup += `

Way` + - ` ${feature.properties.id}` + - ` ` + + ` ${feature.properties.id}` + + ` ` + `

`; else if (feature.properties.type == "relation") popup += `

Relation` + - ` ${feature.properties.id}` + - ` ` + + ` ${feature.properties.id}` + + ` ` + `

`; else popup += `
${feature.properties.type} #${feature.properties.id}
`; @@ -115,7 +115,7 @@ export function featurePopupContent(feature: GeoJSON.Feature) { } popup += ""; diff --git a/package.json b/package.json index f822b63d..b2063b0e 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "overpass-turbo", - "description": "A web based data mining tool for OpenStreetMap using Overpass API", + "version": "2.0.1", + "description": "A web based data mining tool for OpenHistoricalMap using Overpass API", "homepage": "http://overpass-turbo.eu/", - "repository": "git+https://github.com/tyrasd/overpass-turbo.git", + "repository": "git+https://github.com/OpenHistoricalMap/overpass-turbo.git", "license": "MIT", "scripts": { "test": "yarn run test:eslint && yarn run test:style && yarn run test:vitest",