Skip to content

Commit f988c99

Browse files
committed
Add OSM copyright to single tile in index.html
1 parent f3cb5b8 commit f988c99

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/templates/base.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ border-bottom: #ccc 1px solid;
6464
padding: 10px;
6565
}
6666

67+
#osm_attribution {
68+
font-size: 0.7em;
69+
}
70+
6771
#footer {
6872
margin-top: 20px;
6973
border-top: 1px solid #eee;
@@ -211,4 +215,4 @@ li {
211215
.syntax .vg { color: #bb60d5 } /* Name.Variable.Global */
212216
.syntax .vi { color: #bb60d5 } /* Name.Variable.Instance */
213217
.syntax .il { color: #40a070 } /* Literal.Number.Integer.Long */
214-
.syntax .il { color: #40a070 } /* Literal.Number.Integer.Long */
218+
.syntax .il { color: #40a070 } /* Literal.Number.Integer.Long */

scripts/templates/index.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@
5757
</ul>
5858
<a href="{{ home_dir }}/explorer.html" title="Open Explorer">
5959
<p>Click the Map to open the Explorer</p>
60-
<img src="https://a.tile.openstreetmap.org/0/0/0.png">
60+
<img src="https://a.tile.openstreetmap.org/0/0/0.png" alt="World map">
6161
</a>
62+
<div id="osm_attribution">
63+
Map &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors
64+
</div>
6265
</div>
6366
<div id="footer">
6467
{% include 'sections/footer.tmpl' %} - Code implementation inspired by <a href="https://crs-explorer.proj.org">crs-explorer.proj.org</a>

0 commit comments

Comments
 (0)