From ca1ac99551ea167d8a5b84fcd4c4389ca3b8809f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 31 Oct 2024 08:46:52 +0100 Subject: [PATCH] Added section anchors --- index.html | 76 +++++++++++++++++++++++------------------------ scripts/mapgen.py | 12 ++++---- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/index.html b/index.html index 85f33e7..c2962f8 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ directory as found under Help->Paths.

files have a ".tpl" extension instead of the usual ".xml" extension. You must fill in the required info and rename the file before you can use it in GPXSee.

-

Worldwide

+

Worldwide

@@ -56,7 +56,7 @@ can use it in GPXSee.

Map Preview
4UMaps
Map Preview
ÖPNVKarte
-

Antarctica

+

Antarctica

@@ -64,19 +64,19 @@ can use it in GPXSee.

Map Preview
Antarctica
Map Preview
Landsat Image Mosaic of Antarctica
-

Asia

+

Asia

Map Preview
Slazav mountains
-

Japan

+

Japan

Map Preview
Geographical Institute Tile (標準地図)
-

Taiwan (Republic of China)

+

Taiwan (Republic of China)

@@ -85,7 +85,7 @@ can use it in GPXSee.

Map Preview
NLSC - EMAP
Map Preview
TWTOPO-rudy
-

Europe

+

Europe

@@ -93,14 +93,14 @@ can use it in GPXSee.

Map Preview
Open Flighmaps
Map Preview
mtbmap.cz
-

Andorra

+
Map Preview
Andorra Orto
Map Preview
Andorra Topo
-

Austria

+

Austria

@@ -108,27 +108,27 @@ can use it in GPXSee.

Map Preview
Basemap AT Farbe
Map Preview
Basemap AT Orthofoto
-

Belgium

+

Belgium

Map Preview
NGI
Map Preview
Wallonia orthophotos
-

Bulgaria

+

Bulgaria

Map Preview
BGMountains
-

Croatia

+

Croatia

Map Preview
Digitalni ortofoto
Map Preview
Topografska karta 25k
-

Czech Republic

+

Czech Republic

@@ -137,20 +137,20 @@ can use it in GPXSee.

Map Preview
Poloha.Net
Map Preview
ČÚZK - Základní mapy
-

Denmark

+

Denmark

Map Preview
SDFE - Ortofoto forår [TPL]
Map Preview
SDFE - Skærmkort [TPL]
-

Estonia

+

Estonia

Map Preview
Maa-amet Topo
-

Finland

+

Finland

@@ -163,7 +163,7 @@ can use it in GPXSee.

Map Preview
Ilmakuva (Aerial image) [TPL]
Map Preview
Taustakartta (Background map) [TPL]
-

France

+

France

@@ -171,7 +171,7 @@ can use it in GPXSee.

Map Preview
Carte OACI-VFR [TPL]
Map Preview
Photographies aériennes
-

Germany

+

Germany

@@ -195,13 +195,13 @@ can use it in GPXSee.

Map Preview
Bayern DOP
Map Preview
WebVektor
-

Hungary

+

Hungary

Map Preview
Turistautak
-

Iceland

+

Iceland

@@ -209,27 +209,27 @@ can use it in GPXSee.

Map Preview
Iceland Atlas
Map Preview
Iceland Map
-

Italy

+

Italy

Map Preview
Lombardia Orthophoto
Map Preview
Trento Orthophoto
-

Latvia

+

Latvia

Map Preview
LGIA - topo
Map Preview
LGIA Ortofoto
-

Lithuania

+

Lithuania

Map Preview
LEII - topo
-

Netherlands

+

Netherlands

@@ -237,7 +237,7 @@ can use it in GPXSee.

Map Preview
PDOK Achtergrondkaart
Map Preview
PDOK TOP10NL
-

Norway

+

Norway

@@ -245,7 +245,7 @@ can use it in GPXSee.

Map Preview
Statkart.no Sjøkart
Map Preview
Topografisk Norgeskart
-

Poland

+

Poland

@@ -254,7 +254,7 @@ can use it in GPXSee.

Map Preview
GUGIK Mapa Topograficzna
Map Preview
UMP-pcPL
-

Russian Federation

+

Russian Federation

@@ -273,7 +273,7 @@ can use it in GPXSee.

Map Preview
GGC 1km
Map Preview
Topo 500m
-

Slovakia

+

Slovakia

@@ -281,7 +281,7 @@ can use it in GPXSee.

Map Preview
Freemap Slovakia
Map Preview
GKÚ - ZBGIS
-

Slovenia

+

Slovenia

@@ -289,7 +289,7 @@ can use it in GPXSee.

Map Preview
Slovenia - DPK750
Map Preview
Slovenia - ortofoto
-

Spain

+

Spain

@@ -303,7 +303,7 @@ can use it in GPXSee.

Map Preview
Cartografía raster del IGN
Map Preview
Ortoimágenes de España
-

Svalbard & Jan Mayen Islands

+

Svalbard & Jan Mayen Islands

@@ -312,14 +312,14 @@ can use it in GPXSee.

Map Preview
Jan Mayen Topography
Map Preview
Svalbard Topography
-

Sweden

+

Sweden

Map Preview
Historiska ortofoton [TPL]
Map Preview
Topografisk Webbkarta [TPL]
-

Switzerland

+

Switzerland

@@ -330,7 +330,7 @@ can use it in GPXSee.

Map Preview
OSM Switzerland
Map Preview
Swisstopo - Swissimage
-

United Kingdom (Great Britain)

+

United Kingdom (Great Britain)

@@ -338,8 +338,8 @@ can use it in GPXSee.

Map Preview
OS Leisure [TPL]
Map Preview
OS Road [TPL]
-

North America

-

Canada

+

North America

+

Canada

@@ -347,7 +347,7 @@ can use it in GPXSee.

Map Preview
CBMT
Map Preview
Quebec Imagery
-

United States of America

+

United States of America

@@ -356,8 +356,8 @@ can use it in GPXSee.

Map Preview
ChartBundle.com - Sectional
Map Preview
USGS Topo
-

Oceania

-

New Zealand

+

Oceania

+

New Zealand

diff --git a/scripts/mapgen.py b/scripts/mapgen.py index 782cc2d..a99d06d 100755 --- a/scripts/mapgen.py +++ b/scripts/mapgen.py @@ -263,8 +263,8 @@ def sectionname(name): else: return name -def header(name, level): - return "" + name + "\n" +def header(name, code, level): + return "" + name + "\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.

""") -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("""
Map Preview
NZ Topo Map 250