1
0
mirror of https://github.com/tumic0/GPXSee-maps.git synced 2024-10-06 06:43:23 +02:00

Added gpxsee.org link and template info to maps

This commit is contained in:
Martin Tůma 2020-03-07 09:27:30 +01:00
parent 5621687cab
commit 669e9d44ff
3 changed files with 35 additions and 22 deletions

View File

@ -9,34 +9,35 @@
<body>
<div class="center">
<h1>GPXSee Online Maps</h1>
<p>GPXSee online map definition files ready to use. Simply download the XML file
and open it in GPXSee as a map file. To use the map permanently, copy the file
to the &quot;maps&quot; directory as found under Help->Paths.</p>
<p><a href="https://www.gpxsee.org">GPXSee</a> online map definition files
ready to use. Simply download the XML file and open it in GPXSee as a map
file. To use the map permanently, copy the file to the &quot;maps&quot;
directory as found under Help->Paths.</p>
<p><small>Some maps require API keys or user credentials. Such map definition
files have a &quot;.tpl&quot; extension instead of the usual &quot;.xml&quot;
extension. You must fill in the required info and rename the file before you can
use it in GPXSee.</small></p>
extension. You must fill in the required info and rename the file before you
can use it in GPXSee.</small></p>
<h2>Worldwide</h2>
<table>
<tr>
<td><a href="maps/4UMaps.xml" download><img src="tiles/4UMaps.png" alt="Map Preview" width="256" height="256"/></a><br/>4UMaps</td>
<td><a href="maps/CyclOSM.xml" download><img src="tiles/CyclOSM.png" alt="Map Preview" width="256" height="256"/></a><br/>CyclOSM</td>
<td><a href="maps/heidelberg.tpl" download><img src="tiles/heidelberg.png" alt="Map Preview" width="256" height="256"/></a><br/>GIScience Heidelberg</td>
<td><a href="maps/here-aerial.tpl" download><img src="tiles/here-aerial.jpg" alt="Map Preview" width="256" height="256"/></a><br/>HERE Aerial Map</td>
<td><a href="maps/heidelberg.tpl" download><img src="tiles/heidelberg.png" alt="Map Preview" width="256" height="256"/></a><br/>GIScience Heidelberg <small>[TPL]</small></td>
<td><a href="maps/here-aerial.tpl" download><img src="tiles/here-aerial.jpg" alt="Map Preview" width="256" height="256"/></a><br/>HERE Aerial Map <small>[TPL]</small></td>
</tr><tr>
<td><a href="maps/here-base.tpl" download><img src="tiles/here-base.png" alt="Map Preview" width="256" height="256"/></a><br/>HERE Base Map</td>
<td><a href="maps/here-base.tpl" download><img src="tiles/here-base.png" alt="Map Preview" width="256" height="256"/></a><br/>HERE Base Map <small>[TPL]</small></td>
<td><a href="maps/HikeBikeMap.xml" download><img src="tiles/HikeBikeMap.png" alt="Map Preview" width="256" height="256"/></a><br/>HikeBikeMap</td>
<td><a href="maps/MapTiler.tpl" download><img src="tiles/MapTiler.png" alt="Map Preview" width="256" height="256"/></a><br/>MapTiler</td>
<td><a href="maps/MapTiler.tpl" download><img src="tiles/MapTiler.png" alt="Map Preview" width="256" height="256"/></a><br/>MapTiler <small>[TPL]</small></td>
<td><a href="maps/OpenStreetMap.xml" download><img src="tiles/OpenStreetMap.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Street Map</td>
</tr><tr>
<td><a href="maps/OpenStreetMap-BW.xml" download><img src="tiles/OpenStreetMap-BW.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Street Map - Black and White</td>
<td><a href="maps/OpenStreetMap-HiDPI.xml" download><img src="tiles/OpenStreetMap-HiDPI.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Street Map - HiDPI</td>
<td><a href="maps/OpenTopoMap.xml" download><img src="tiles/OpenTopoMap.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Topo Map</td>
<td><a href="maps/Thunderforest-Landscape.tpl" download><img src="tiles/Thunderforest-Landscape.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Landscape</td>
<td><a href="maps/Thunderforest-Landscape.tpl" download><img src="tiles/Thunderforest-Landscape.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Landscape <small>[TPL]</small></td>
</tr><tr>
<td><a href="maps/Thunderforest-OpenCycleMap.tpl" download><img src="tiles/Thunderforest-OpenCycleMap.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - OpenCycleMap</td>
<td><a href="maps/Thunderforest-Outdoors.tpl" download><img src="tiles/Thunderforest-Outdoors.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Outdoors</td>
<td><a href="maps/Thunderforest-Transport.tpl" download><img src="tiles/Thunderforest-Transport.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Transport</td>
<td><a href="maps/Thunderforest-OpenCycleMap.tpl" download><img src="tiles/Thunderforest-OpenCycleMap.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - OpenCycleMap <small>[TPL]</small></td>
<td><a href="maps/Thunderforest-Outdoors.tpl" download><img src="tiles/Thunderforest-Outdoors.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Outdoors <small>[TPL]</small></td>
<td><a href="maps/Thunderforest-Transport.tpl" download><img src="tiles/Thunderforest-Transport.png" alt="Map Preview" width="256" height="256"/></a><br/>Thunderforest - Transport <small>[TPL]</small></td>
<td><a href="maps/unesco.xml" download><img src="tiles/unesco.png" alt="Map Preview" width="256" height="256"/></a><br/>UNESCO</td>
</tr><tr>
<td><a href="maps/marshruty.ru.xml" download><img src="tiles/marshruty.ru.jpg" alt="Map Preview" width="256" height="256"/></a><br/>marshruty.ru</td>
@ -236,8 +237,8 @@ use it in GPXSee.</small></p>
<tr>
<td><a href="maps/OpenStreetMap-Switzerland.xml" download><img src="tiles/OpenStreetMap-Switzerland.png" alt="Map Preview" width="256" height="256"/></a><br/>OSM Switzerland</td>
<td><a href="maps/OpenStreetMap-Swiss-Style.xml" download><img src="tiles/OpenStreetMap-Swiss-Style.png" alt="Map Preview" width="256" height="256"/></a><br/>OSM Switzerland Swiss Style</td>
<td><a href="maps/Swisstopo.tpl" download><img src="tiles/Swisstopo.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo</td>
<td><a href="maps/Swisstopo-Aerial.tpl" download><img src="tiles/Swisstopo-Aerial.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo Aerial</td>
<td><a href="maps/Swisstopo.tpl" download><img src="tiles/Swisstopo.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo <small>[TPL]</small></td>
<td><a href="maps/Swisstopo-Aerial.tpl" download><img src="tiles/Swisstopo-Aerial.png" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo Aerial <small>[TPL]</small></td>
</tr>
</table>
<h2>North America</h2>

View File

@ -308,10 +308,11 @@ def processmaps(maps, htmlfile):
for info in items:
if i and i % 4 == 0:
htmlfile.write("</tr><tr>\n")
template = " <small>[TPL]</small>" if info["url"].endswith(".tpl") else ""
htmlfile.write("<td>" + "<a href=\"" + info["url"] + "\" download><img src=\""
+ info["tile"]
+ "\" alt=\"Map Preview\" width=\"256\" height=\"256\"/></a><br/>"
+ info["name"] + "</td>\n")
+ info["name"] + template + "</td>\n")
i = i + 1
htmlfile.write("</tr>\n</table>\n")
@ -353,13 +354,14 @@ htmlfile.write("""<!DOCTYPE html>
<body>
<div class="center">
<h1>GPXSee Online Maps</h1>
<p>GPXSee online map definition files ready to use. Simply download the XML file
and open it in GPXSee as a map file. To use the map permanently, copy the file
to the &quot;maps&quot; directory as found under Help->Paths.</p>
<p><a href="https://www.gpxsee.org">GPXSee</a> online map definition files
ready to use. Simply download the XML file and open it in GPXSee as a map
file. To use the map permanently, copy the file to the &quot;maps&quot;
directory as found under Help->Paths.</p>
<p><small>Some maps require API keys or user credentials. Such map definition
files have a &quot;.tpl&quot; extension instead of the usual &quot;.xml&quot;
extension. You must fill in the required info and rename the file before you can
use it in GPXSee.</small></p>
extension. You must fill in the required info and rename the file before you
can use it in GPXSee.</small></p>
""")
htmlfile.write(header("Worldwide", 2))

View File

@ -28,6 +28,16 @@ h3 {
margin-bottom:0;
padding-bottom:0;
}
a {
color:white;
text-decoration:underline;
}
a:hover {
text-decoration:none;
}
small {
color:grey;
}
.center {
margin:20px auto;
width:1124px;
@ -38,4 +48,4 @@ h3 {
margin-left:10px;
width:60%;
color:#ffffff;
}
}