mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Link calendar event locations to OSM instead of Google Maps
Better would be to use https://www.mediawiki.org/wiki/GeoHack – which is used by WikiPedia to show an interactive selector for the mapping service to use –, but it requires geo coordinates. Some systems also support generic geo:-URIs, but they require coodinates and outside Android support is pretty spotty (Apple wants you to use Apple Maps links instead, desktop platforms generally require installed third-party apps …). Android does support an extension (`?q=`) (https://developer.android.com/guide/components/intents-common#Maps) to search by address via geo:-links though.
This commit is contained in:
parent
463641c7a2
commit
3a3f6eb2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ export default function ViewEventModal(
|
|||
? (
|
||||
<section class='py-5 my-0 border-b border-slate-500'>
|
||||
<a
|
||||
href={`https://maps.google.com/maps?q=${encodeURIComponent(calendarEvent.location)}`}
|
||||
href={`https://www.openstreetmap.org/search?query=${encodeURIComponent(calendarEvent.location)}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in a new issue