From 628f8c4c0441556b1c00a43abd11d44508a62761 Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Wed, 14 Oct 2020 21:51:56 +0000 Subject: [PATCH] add copyright footer --- mbgl-index.html | 3 +++ mbgl-map.css | 11 +++++++++++ mbgl-map.js | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/mbgl-index.html b/mbgl-index.html index 5f47509..9ed2133 100644 --- a/mbgl-index.html +++ b/mbgl-index.html @@ -50,5 +50,8 @@ Choose a location in the map to switch to 3D view. Then use mouse and W, A, S, D keys to move.
Cancel
+
+ Copyright +
{% endblock %} diff --git a/mbgl-map.css b/mbgl-map.css index 36ff4db..589fbfe 100644 --- a/mbgl-map.css +++ b/mbgl-map.css @@ -235,3 +235,14 @@ canvas.mapboxgl-canvas.crosshair-cursor { #search-results-loading { margin-left: 10px; } + +#kartta-attribution { + z-index: 100001; + position: absolute; + right: 0; + bottom: 0; + padding: 3px; + background: rgba(255,255,255,0.3); + margin-right: 5px; + margin-bottom: 5px; +} diff --git a/mbgl-map.js b/mbgl-map.js index 415c089..dcee182 100644 --- a/mbgl-map.js +++ b/mbgl-map.js @@ -120,7 +120,8 @@ document.addEventListener("DOMContentLoaded", function(){ zoom: 14, minZoom: 0, hash: true, - fadeDuration: 100 //controls the duration of the fade for text labels and symbols (default 300) + fadeDuration,: 100 //controls the duration of the fade for text labels and symbols (default 300) + attributionControl: false }); map.addControl(new mapboxgl.NavigationControl({