From 6dff9cb2c859ec7a854852b5cf3daab67ec0b37a Mon Sep 17 00:00:00 2001 From: Galen CC <95080649+galen8183@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:31:12 -0500 Subject: [PATCH] webapp/map: add OpenStreetMap attribution to Leaflet slippy map (#19) * webapp/map: add OpenStreetMap attribution to Leaflet slippy map Add attribution to the slippy map, formatted as shown in the VueJS Leaflet docs: https://vue2-leaflet.netlify.app/quickstart/ The [ODbL](https://opendatacommons.org/licenses/odbl/1-0/) requires attribution to be included alongside the map, stated in clause 4.3: > You must include a notice associated with the Produced Work reasonably > calculated to make any Person that uses, views, accesses, interacts with, or > is otherwise exposed to the Produced Work aware that Content was obtained > from the Database, Derivative Database, or the Database as part of a > Collective Database, and that it is available under this License. See also https://wiki.openstreetmap.org/wiki/Community_attribution_advice Signed-off-by: Galen CC * webapp/map: inline OpenStreetMap attribution Signed-off-by: Galen CC --------- Signed-off-by: Galen CC --- webapp/src/views/Map.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webapp/src/views/Map.vue b/webapp/src/views/Map.vue index fb9bed7..b4b1d67 100644 --- a/webapp/src/views/Map.vue +++ b/webapp/src/views/Map.vue @@ -15,7 +15,7 @@ :use-global-leaflet="false" @update:bounds="updateBounds" @ready="mapLoaded" - :options="{ zoomControl: false, attributionControl: false }" + :options="{ zoomControl: false }" >
@@ -47,8 +47,9 @@ :url="mapTileUrl" layer-type="base" name="OpenStreetMap" + attribution="© OpenStreetMap contributors" /> - + mdi-crosshairs-gps