From 87751ff172c110b18616d56ae9808979ef8f9b08 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sun, 17 Mar 2024 11:59:08 +0100 Subject: Adapt plugin for UMAP --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 52cd9c9..feab932 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ -discourse-openstreetmap +discourse-umap ======================= -> Discourse plugin to support OSM via URL Oneboxing +> Discourse plugin to support OSM via UMAP URL Oneboxing + +_This is inspired by discourse-openstreetmap, but it covers umap URIs._ ## Installation on top of Docker image @@ -14,7 +16,7 @@ hooks: cd: $home/plugins cmd: - mkdir -p plugins - - git clone https://github.com/lidel/discourse-openstreetmap.git + - git clone https://code.cepheide.org/discourse-umap.git ``` Rebuild Discourse: `/var/discourse/launcher rebuild app` @@ -23,7 +25,7 @@ Rebuild Discourse: `/var/discourse/launcher rebuild app` ### What URLs are oneboxed by this plugin? - https://www.openstreetmap.org/?mlat=[Marker Latitude]&mlon=[Marker Longitude]#map=[Zoom Level]/[Latitude]/[Longitude]&layers=[Layer code] + https://umap.openstreetmap.{fr,org}/{fr,en}/map/[map-name]?mlat=[Marker Latitude]&mlon=[Marker Longitude]#map=[Zoom Level]/[Latitude]/[Longitude]&layers=[Layer code] will be onboxed as a mini-map: @@ -36,6 +38,8 @@ Sure you can! In past it was done by this plugin, but there is now an `allowed i Something to keep in mind: embedding of OSM `iframe` is enabled by default only for HTTPS URL. This means if it does not work for you, change `