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 copyright footer #24

Merged
merged 1 commit into from
Oct 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mbgl-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<div id="cancel-3d-button">Cancel</div>
</div>
<div id="kartta-attribution">
<a href="/copyright">Copyright</a>
</div>
</div>
{% endblock %}
11 changes: 11 additions & 0 deletions mbgl-map.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 2 additions & 1 deletion mbgl-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down