Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to Wikidata/Wikimedia Commons in info popups #193

Open
wolfy1339 opened this issue Jan 4, 2025 · 0 comments
Open

Add links to Wikidata/Wikimedia Commons in info popups #193

wolfy1339 opened this issue Jan 4, 2025 · 0 comments

Comments

@wolfy1339
Copy link

It would be cool if the info pop-ups could link to Wikidata/Wikimedia Commons

If a railway feature in OSM has a wikidata tag, display a button linking to the corresponding Wikidata item (e.g., wikidata=Q12345https://www.wikidata.org/wiki/Q12345).

If a wikimedia_commons tag is present, display a button linking to the relevant Wikimedia Commons page.
If absent, infer the Commons link by reading the sitelinks property from the linked Wikidata item.

One could also display the image defined in the wikidata item P18 property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant