1
0
mirror of https://github.com/tumic0/GPXSee-maps.git synced 2024-11-23 19:25:55 +01:00

Added section anchors

This commit is contained in:
Martin Tůma 2024-10-31 08:46:52 +01:00
parent 88ba3293d3
commit ca1ac99551
2 changed files with 44 additions and 44 deletions

View File

@ -17,7 +17,7 @@ directory as found under Help->Paths.</p>
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>
<h2>Worldwide</h2>
<h2 id="Worldwide">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>
@ -56,7 +56,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/OPNVKarte.xml" download><img src="tiles/OPNVKarte.png" alt="Map Preview" width="256" height="256"/></a><br/>ÖPNVKarte</td>
</tr>
</table>
<h2>Antarctica</h2>
<h2 id="Antarctica">Antarctica</h2>
<table>
<tr>
<td><a href="maps/Antarctica.xml" download><img src="tiles/Antarctica.png" alt="Map Preview" width="256" height="256"/></a><br/>Antarctica</td>
@ -64,19 +64,19 @@ can use it in GPXSee.</small></p>
<td><a href="maps/LIMA.xml" download><img src="tiles/LIMA.png" alt="Map Preview" width="256" height="256"/></a><br/>Landsat Image Mosaic of Antarctica</td>
</tr>
</table>
<h2>Asia</h2>
<h2 id="Asia">Asia</h2>
<table>
<tr>
<td><a href="maps/nakarte-slazav-mountains.xml" download><img src="tiles/nakarte-slazav-mountains.png" alt="Map Preview" width="256" height="256"/></a><br/>Slazav mountains</td>
</tr>
</table>
<h3>Japan</h3>
<h3 id="JP">Japan</h3>
<table>
<tr>
<td><a href="maps/GSI-basemap.xml" download><img src="tiles/GSI-basemap.png" alt="Map Preview" width="256" height="256"/></a><br/>Geographical Institute Tile (標準地図)</td>
</tr>
</table>
<h3>Taiwan (Republic of China)</h3>
<h3 id="TW">Taiwan (Republic of China)</h3>
<table>
<tr>
<td><a href="maps/NLSC-EMAP.xml" download><img src="tiles/NLSC-EMAP.jpg" alt="Map Preview" width="256" height="256"/></a><br/>NLSC - EMAP</td>
@ -85,7 +85,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/TWTOPO-rudy.xml" download><img src="tiles/TWTOPO-rudy.png" alt="Map Preview" width="256" height="256"/></a><br/>TWTOPO-rudy</td>
</tr>
</table>
<h2>Europe</h2>
<h2 id="Europe">Europe</h2>
<table>
<tr>
<td><a href="maps/OpenFlightMaps.xml" download><img src="tiles/OpenFlightMaps.png" alt="Map Preview" width="256" height="256"/></a><br/>Open Flighmaps</td>
@ -93,14 +93,14 @@ can use it in GPXSee.</small></p>
<td><a href="maps/mtbmap.cz.xml" download><img src="tiles/mtbmap.cz.png" alt="Map Preview" width="256" height="256"/></a><br/>mtbmap.cz</td>
</tr>
</table>
<h3>Andorra</h3>
<h3 id="AD">Andorra</h3>
<table>
<tr>
<td><a href="maps/andorra-orto.xml" download><img src="tiles/andorra-orto.png" alt="Map Preview" width="256" height="256"/></a><br/>Andorra Orto</td>
<td><a href="maps/andorra-topo.xml" download><img src="tiles/andorra-topo.png" alt="Map Preview" width="256" height="256"/></a><br/>Andorra Topo</td>
</tr>
</table>
<h3>Austria</h3>
<h3 id="AT">Austria</h3>
<table>
<tr>
<td><a href="maps/BasemapAT-Farbe.xml" download><img src="tiles/BasemapAT-Farbe.png" alt="Map Preview" width="256" height="256"/></a><br/>Basemap AT Farbe</td>
@ -108,27 +108,27 @@ can use it in GPXSee.</small></p>
<td><a href="maps/BasemapAT-Ortho.xml" download><img src="tiles/BasemapAT-Ortho.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Basemap AT Orthofoto</td>
</tr>
</table>
<h3>Belgium</h3>
<h3 id="BE">Belgium</h3>
<table>
<tr>
<td><a href="maps/ngi.xml" download><img src="tiles/ngi.png" alt="Map Preview" width="256" height="256"/></a><br/>NGI</td>
<td><a href="maps/wallonie-ortho.xml" download><img src="tiles/wallonie-ortho.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Wallonia orthophotos</td>
</tr>
</table>
<h3>Bulgaria</h3>
<h3 id="BG">Bulgaria</h3>
<table>
<tr>
<td><a href="maps/BGMountains.xml" download><img src="tiles/BGMountains.png" alt="Map Preview" width="256" height="256"/></a><br/>BGMountains</td>
</tr>
</table>
<h3>Croatia</h3>
<h3 id="HR">Croatia</h3>
<table>
<tr>
<td><a href="maps/HR-DOF.xml" download><img src="tiles/HR-DOF.png" alt="Map Preview" width="256" height="256"/></a><br/>Digitalni ortofoto</td>
<td><a href="maps/HR-TK25.xml" download><img src="tiles/HR-TK25.png" alt="Map Preview" width="256" height="256"/></a><br/>Topografska karta 25k</td>
</tr>
</table>
<h3>Czech Republic</h3>
<h3 id="CZ">Czech Republic</h3>
<table>
<tr>
<td><a href="maps/Poloha.Net.xml" download><img src="tiles/Poloha.Net.png" alt="Map Preview" width="256" height="256"/></a><br/>Poloha.Net</td>
@ -137,20 +137,20 @@ can use it in GPXSee.</small></p>
<td><a href="maps/CUZK-zm.xml" download><img src="tiles/CUZK-zm.png" alt="Map Preview" width="256" height="256"/></a><br/>ČÚZK - Základní mapy</td>
</tr>
</table>
<h3>Denmark</h3>
<h3 id="DK">Denmark</h3>
<table>
<tr>
<td><a href="maps/SDFE-orto.tpl" download><img src="tiles/SDFE-orto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>SDFE - Ortofoto forår <small>[TPL]</small></td>
<td><a href="maps/SDFE-topo.tpl" download><img src="tiles/SDFE-topo.jpg" alt="Map Preview" width="256" height="256"/></a><br/>SDFE - Skærmkort <small>[TPL]</small></td>
</tr>
</table>
<h3>Estonia</h3>
<h3 id="EE">Estonia</h3>
<table>
<tr>
<td><a href="maps/MA-KAART.xml" download><img src="tiles/MA-KAART.png" alt="Map Preview" width="256" height="256"/></a><br/>Maa-amet Topo</td>
</tr>
</table>
<h3>Finland</h3>
<h3 id="FI">Finland</h3>
<table>
<tr>
<td><a href="maps/Ilmakuva.tpl" download><img src="tiles/Ilmakuva.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Ilmakuva (Aerial image) <small>[TPL]</small></td>
@ -163,7 +163,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Taustakartta.tpl" download><img src="tiles/Taustakartta.png" alt="Map Preview" width="256" height="256"/></a><br/>Taustakartta (Background map) <small>[TPL]</small></td>
</tr>
</table>
<h3>France</h3>
<h3 id="FR">France</h3>
<table>
<tr>
<td><a href="maps/IGN-maps-scan-oaci-vfr.tpl" download><img src="tiles/IGN-maps-scan-oaci-vfr.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Carte OACI-VFR <small>[TPL]</small></td>
@ -171,7 +171,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/IGN-orthophotos.xml" download><img src="tiles/IGN-orthophotos.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Photographies aériennes</td>
</tr>
</table>
<h3>Germany</h3>
<h3 id="DE">Germany</h3>
<table>
<tr>
<td><a href="maps/Bayern-DOP.xml" download><img src="tiles/Bayern-DOP.png" alt="Map Preview" width="256" height="256"/></a><br/>Bayern DOP</td>
@ -195,13 +195,13 @@ can use it in GPXSee.</small></p>
<td><a href="maps/WebVektor.xml" download><img src="tiles/WebVektor.png" alt="Map Preview" width="256" height="256"/></a><br/>WebVektor</td>
</tr>
</table>
<h3>Hungary</h3>
<h3 id="HU">Hungary</h3>
<table>
<tr>
<td><a href="maps/turistautak.xml" download><img src="tiles/turistautak.png" alt="Map Preview" width="256" height="256"/></a><br/>Turistautak</td>
</tr>
</table>
<h3>Iceland</h3>
<h3 id="IS">Iceland</h3>
<table>
<tr>
<td><a href="maps/NLS_Atlas.xml" download><img src="tiles/NLS_Atlas.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Iceland Atlas</td>
@ -209,27 +209,27 @@ can use it in GPXSee.</small></p>
<td><a href="maps/NLS_Map.xml" download><img src="tiles/NLS_Map.png" alt="Map Preview" width="256" height="256"/></a><br/>Iceland Map</td>
</tr>
</table>
<h3>Italy</h3>
<h3 id="IT">Italy</h3>
<table>
<tr>
<td><a href="maps/Lombardia-orto.xml" download><img src="tiles/Lombardia-orto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Lombardia Orthophoto</td>
<td><a href="maps/Trento-orto.xml" download><img src="tiles/Trento-orto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Trento Orthophoto</td>
</tr>
</table>
<h3>Latvia</h3>
<h3 id="LV">Latvia</h3>
<table>
<tr>
<td><a href="maps/LGIA.xml" download><img src="tiles/LGIA.png" alt="Map Preview" width="256" height="256"/></a><br/>LGIA - topo</td>
<td><a href="maps/LGIA-orto.xml" download><img src="tiles/LGIA-orto.png" alt="Map Preview" width="256" height="256"/></a><br/>LGIA Ortofoto</td>
</tr>
</table>
<h3>Lithuania</h3>
<h3 id="LT">Lithuania</h3>
<table>
<tr>
<td><a href="maps/LEII.xml" download><img src="tiles/LEII.jpg" alt="Map Preview" width="256" height="256"/></a><br/>LEII - topo</td>
</tr>
</table>
<h3>Netherlands</h3>
<h3 id="NL">Netherlands</h3>
<table>
<tr>
<td><a href="maps/PDOK-achtergrondkaart.xml" download><img src="tiles/PDOK-achtergrondkaart.png" alt="Map Preview" width="256" height="256"/></a><br/>PDOK Achtergrondkaart</td>
@ -237,7 +237,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/PDOK-TOP10NL.xml" download><img src="tiles/PDOK-TOP10NL.png" alt="Map Preview" width="256" height="256"/></a><br/>PDOK TOP10NL</td>
</tr>
</table>
<h3>Norway</h3>
<h3 id="NO">Norway</h3>
<table>
<tr>
<td><a href="maps/Statkart-marine.xml" download><img src="tiles/Statkart-marine.png" alt="Map Preview" width="256" height="256"/></a><br/>Statkart.no Sjøkart</td>
@ -245,7 +245,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Norgeskart.xml" download><img src="tiles/Norgeskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Topografisk Norgeskart</td>
</tr>
</table>
<h3>Poland</h3>
<h3 id="PL">Poland</h3>
<table>
<tr>
<td><a href="maps/GUGIK-topo.xml" download><img src="tiles/GUGIK-topo.jpg" alt="Map Preview" width="256" height="256"/></a><br/>GUGIK Mapa Topograficzna</td>
@ -254,7 +254,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/UMP-pcPL.xml" download><img src="tiles/UMP-pcPL.png" alt="Map Preview" width="256" height="256"/></a><br/>UMP-pcPL</td>
</tr>
</table>
<h3>Russian Federation</h3>
<h3 id="RU">Russian Federation</h3>
<table>
<tr>
<td><a href="maps/nakarte-ggc1000.xml" download><img src="tiles/nakarte-ggc1000.png" alt="Map Preview" width="256" height="256"/></a><br/>GGC 1km</td>
@ -273,7 +273,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/nakarte-topo500.xml" download><img src="tiles/nakarte-topo500.png" alt="Map Preview" width="256" height="256"/></a><br/>Topo 500m</td>
</tr>
</table>
<h3>Slovakia</h3>
<h3 id="SK">Slovakia</h3>
<table>
<tr>
<td><a href="maps/FreemapSlovakia.xml" download><img src="tiles/FreemapSlovakia.png" alt="Map Preview" width="256" height="256"/></a><br/>Freemap Slovakia</td>
@ -281,7 +281,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/GKU-ZBGIS.xml" download><img src="tiles/GKU-ZBGIS.png" alt="Map Preview" width="256" height="256"/></a><br/>GKÚ - ZBGIS</td>
</tr>
</table>
<h3>Slovenia</h3>
<h3 id="SI">Slovenia</h3>
<table>
<tr>
<td><a href="maps/Slovenia-DPK750.xml" download><img src="tiles/Slovenia-DPK750.png" alt="Map Preview" width="256" height="256"/></a><br/>Slovenia - DPK750</td>
@ -289,7 +289,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Slovenia-ortofoto.xml" download><img src="tiles/Slovenia-ortofoto.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Slovenia - ortofoto</td>
</tr>
</table>
<h3>Spain</h3>
<h3 id="ES">Spain</h3>
<table>
<tr>
<td><a href="maps/IGN-mapa-raster.xml" download><img src="tiles/IGN-mapa-raster.png" alt="Map Preview" width="256" height="256"/></a><br/>Cartografía raster del IGN</td>
@ -303,7 +303,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/IGN-orto.xml" download><img src="tiles/IGN-orto.png" alt="Map Preview" width="256" height="256"/></a><br/>Ortoimágenes de España</td>
</tr>
</table>
<h3>Svalbard & Jan Mayen Islands</h3>
<h3 id="SJ">Svalbard & Jan Mayen Islands</h3>
<table>
<tr>
<td><a href="maps/JanMayen_Basiskart.xml" download><img src="tiles/JanMayen_Basiskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Jan Mayen Topography</td>
@ -312,14 +312,14 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Svalbard_Basiskart.xml" download><img src="tiles/Svalbard_Basiskart.png" alt="Map Preview" width="256" height="256"/></a><br/>Svalbard Topography</td>
</tr>
</table>
<h3>Sweden</h3>
<h3 id="SE">Sweden</h3>
<table>
<tr>
<td><a href="maps/Lantmateriet-orto.tpl" download><img src="tiles/Lantmateriet-orto.png" alt="Map Preview" width="256" height="256"/></a><br/>Historiska ortofoton <small>[TPL]</small></td>
<td><a href="maps/Lantmateriet-topo.tpl" download><img src="tiles/Lantmateriet-topo.png" alt="Map Preview" width="256" height="256"/></a><br/>Topografisk Webbkarta <small>[TPL]</small></td>
</tr>
</table>
<h3>Switzerland</h3>
<h3 id="CH">Switzerland</h3>
<table>
<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>
@ -330,7 +330,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Swisstopo-Swissimage.xml" download><img src="tiles/Swisstopo-Swissimage.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Swisstopo - Swissimage</td>
</tr>
</table>
<h3>United Kingdom (Great Britain)</h3>
<h3 id="GB">United Kingdom (Great Britain)</h3>
<table>
<tr>
<td><a href="maps/OS-Leisure.tpl" download><img src="tiles/OS-Leisure.png" alt="Map Preview" width="256" height="256"/></a><br/>OS Leisure <small>[TPL]</small></td>
@ -338,8 +338,8 @@ can use it in GPXSee.</small></p>
<td><a href="maps/OS-Road.tpl" download><img src="tiles/OS-Road.png" alt="Map Preview" width="256" height="256"/></a><br/>OS Road <small>[TPL]</small></td>
</tr>
</table>
<h2>North America</h2>
<h3>Canada</h3>
<h2 id="North America">North America</h2>
<h3 id="CA">Canada</h3>
<table>
<tr>
<td><a href="maps/CBMT.xml" download><img src="tiles/CBMT.jpg" alt="Map Preview" width="256" height="256"/></a><br/>CBMT</td>
@ -347,7 +347,7 @@ can use it in GPXSee.</small></p>
<td><a href="maps/Quebec-imagery.xml" download><img src="tiles/Quebec-imagery.jpg" alt="Map Preview" width="256" height="256"/></a><br/>Quebec Imagery</td>
</tr>
</table>
<h3>United States of America</h3>
<h3 id="US">United States of America</h3>
<table>
<tr>
<td><a href="maps/ChartBundle-sectional.xml" download><img src="tiles/ChartBundle-sectional.png" alt="Map Preview" width="256" height="256"/></a><br/>ChartBundle.com - Sectional</td>
@ -356,8 +356,8 @@ can use it in GPXSee.</small></p>
<td><a href="maps/USGS-topo.xml" download><img src="tiles/USGS-topo.png" alt="Map Preview" width="256" height="256"/></a><br/>USGS Topo</td>
</tr>
</table>
<h2>Oceania</h2>
<h3>New Zealand</h3>
<h2 id="Oceania">Oceania</h2>
<h3 id="NZ">New Zealand</h3>
<table>
<tr>
<td><a href="maps/NZTopoMap250.xml" download><img src="tiles/NZTopoMap250.png" alt="Map Preview" width="256" height="256"/></a><br/>NZ Topo Map 250</td>

View File

@ -263,8 +263,8 @@ def sectionname(name):
else:
return name
def header(name, level):
return "<h" + str(level) + ">" + name + "</h" + str(level) + ">\n"
def header(name, code, level):
return "<h" + str(level) + " id=\"" + code + "\">" + name + "</h" + str(level) + ">\n"
def tile(xmlfile, suffix):
base = os.path.splitext(os.path.basename(xmlfile))[0]
@ -325,7 +325,7 @@ def processdir(path, level, name, htmlfile):
for entry in entries:
entrypath = os.path.join(path, entry)
if (os.path.isdir(entrypath)):
sections.append((sectionname(entry), entrypath))
sections.append((sectionname(entry), entry, entrypath))
else:
maps.append(entrypath)
@ -333,8 +333,8 @@ def processdir(path, level, name, htmlfile):
processmaps(maps, htmlfile)
sections.sort()
for section in sections:
htmlfile.write(header(section[0], level + 1))
processdir(section[1], level + 1, section[0], htmlfile)
htmlfile.write(header(section[0], section[1], level + 1))
processdir(section[2], level + 1, section[0], htmlfile)
if len(sys.argv) < 2:
@ -364,7 +364,7 @@ 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))
htmlfile.write(header("Worldwide", "Worldwide", 2))
processdir(sys.argv[1], 1, os.path.basename(sys.argv[1]), htmlfile)
htmlfile.write("""