Skip to content

Commit

Permalink
Merge pull request #24 from embeepea/master
Browse files Browse the repository at this point in the history
add copyright footer
  • Loading branch information
embeepea authored Oct 14, 2020
2 parents e8e9dbc + 628f8c4 commit db1367b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
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

0 comments on commit db1367b

Please sign in to comment.