Debian Codegraph @

texmf-dist/tex/latex/mercatormap/mercatorsupplier.def

raw
1 %% The LaTeX package mercatormap - version 1.3.0 (2026/02/19)
2 %% mercatorsupplier.def: predefined map supplier list
3 %%
4 %% -------------------------------------------------------------------------------------------
5 %% Copyright (c) 2020-2026 by Prof. Dr. Dr. Thomas F. Sturm <thomas dot sturm at unibw dot de>
6 %% -------------------------------------------------------------------------------------------
7 %%
8 %% This work may be distributed and/or modified under the
9 %% conditions of the LaTeX Project Public License, either version 1.3
10 %% of this license or (at your option) any later version.
11 %% The latest version of this license is in
12 %% https://www.latex-project.org/lppl.txt
13 %% and version 1.3 or later is part of all distributions of LaTeX
14 %% version 2005/12/01 or later.
15 %%
16 %% This work has the LPPL maintenance status `author-maintained'.
17 %%
18 %% This work consists of all files listed in README
19 %%
20
21 \NewDocumentCommand\mrcumlaut{m}{\"{#1}}
22
23 \cs_new:Npn \__mermap_new_supply_source:nn #1#2
24 {
25 \keys_define:nn { mermap/supply/_source }
26 {
27 #1 .meta:nn = {mermap/supply}{#2}
28 }
29 }
30
31 \NewDocumentCommand\mrcnewsupplysource {mm} {
32 \__mermap_new_supply_source:nn {#1}{#2}
33 }
34
35 \__mermap_new_supply_source:nn { dummy }
36 {
37 url = http://127.0.0.1/dummy/{z}/{x}/{y}.png,
38 attribution = {Dummy~tile~server},
39 attribution~print = {Dummy~tile~server},
40 basename = tiles/dummy,
41 }
42
43 \__mermap_new_supply_source:nn { opentopomap }
44 {
45 url = https://tile.opentopomap.org/{z}/{x}/{y}.png,
46 attribution = {
47 Kartendaten:~\textcopyright\nobreakspace\href{https://openstreetmap.org/copyright}{OpenStreetMap}
48 \ Mitwirkende,~SRTM\nobreakspace\textbar\nobreakspace
49 Kartendarstellung:~\textcopyright\nobreakspace\href{https://opentopomap.org/}{OpenTopoMap}
50 \ (\href{https://creativecommons.org/licenses/by-sa/3.0/}{CC-BY-SA})
51 },
52 attribution~print = {
53 Kartendaten:~\textcopyright\nobreakspace www.openstreetmap.org/copyright,
54 \ SRTM\nobreakspace\textbar\nobreakspace
55 Kartendarstellung:~\textcopyright\nobreakspace opentopomap.org~(CC-BY-SA)
56 },
57 basename = tiles/opentopomap,
58 }
59
60
61 \cs_new:Npn \__mermap_supply_attribution_print_topplus:nn #1#2
62 {
63 \keys_set:nn { mermap/supply }
64 {
65 attribution~print = {
66 \textcopyright\nobreakspace BKG\nobreakspace(#1)
67 \space dl-de/by-2-0,
68 \space Datenquellen:~\nolinkurl{https://sgx.geodatenzentrum.de/web_public/gdz/datenquellen/datenquellen_topplusopen_#2.pdf}
69 }
70 }
71 }
72
73
74 \keys_define:nn { mermap/supply }
75 {
76 attribution~print~topplusopen .code:n =
77 {
78 \tl_set:Nn \l__mermap_tmpa_tl { #1 }
79 \regex_replace_once:nnN { .* \. } { } \l__mermap_tmpa_tl
80 \exp_args:NV \__mermap_supply_attribution_print_topplus:nn \l__mermap_tmpa_tl { #1 }
81 },
82 __attribution_topplusopen .meta:nn = {mermap/supply} {
83 attribution = {
84 Kartendarstellung:\nobreakspace\textcopyright\nobreakspace\href{https://www.bkg.bund.de}{BKG\nobreakspace(\the\year)}
85 \space\href{https://www.govdata.de/dl-de/by-2-0}{dl-de/by-2-0},
86 \space\href{https://sgx.geodatenzentrum.de/web_public/gdz/datenquellen/datenquellen_topplusopen.html}{Datenquellen}
87 },
88 attribution~print~topplusopen = TT.MM.JJJJ,
89 }
90 }
91
92 \__mermap_new_supply_source:nn { topplusopen~web }
93 {
94 url = {https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/default/WEBMERCATOR/{z}/{y}/{x}.png},
95 __attribution_topplusopen,
96 basename = tiles/tpo_web,
97 }
98
99 \__mermap_new_supply_source:nn { topplusopen~web~grau }
100 {
101 url = {https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web_grau/default/WEBMERCATOR/{z}/{y}/{x}.png},
102 __attribution_topplusopen,
103 basename = tiles/tpo_web_grau,
104 }
105
106 \__mermap_new_supply_source:nn { topplusopen~web~light }
107 {
108 url = {https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web_light/default/WEBMERCATOR/{z}/{y}/{x}.png},
109 __attribution_topplusopen,
110 basename = tiles/tpo_web_light,
111 }
112
113 \__mermap_new_supply_source:nn { topplusopen~web~light~grau }
114 {
115 url = {https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web_light_grau/default/WEBMERCATOR/{z}/{y}/{x}.png},
116 __attribution_topplusopen,
117 basename = tiles/tpo_web_light_grau,
118 }
119
120
121 \cs_new:Npn \__mermap_new_supply_source_topplusopen:nn #1#2
122 {
123 \keys_define:nn { mermap/supply/_source }
124 {
125 topplusopen~#1 .meta:nn = {mermap/supply}{
126 url = {https://sgx.geodatenzentrum.de/wms_topplus_open_#2?service=wms&version=1.3.0&request=GetMap&Layers=#1&STYLES=default&CRS=EPSG:3857&bbox={xmin},{ymin},{xmax},{ymax}&width={width}&height={height}&Format=image/png},
127 __attribution_topplusopen,
128 basename = tiles/tpo,
129 },
130 topplusopen~#1~grau .meta:nn = {mermap/supply}{
131 url = {https://sgx.geodatenzentrum.de/wms_topplus_open_#2?service=wms&version=1.3.0&request=GetMap&Layers=#1&STYLES=grau&CRS=EPSG:3857&bbox={xmin},{ymin},{xmax},{ymax}&width={width}&height={height}&Format=image/png},
132 __attribution_topplusopen,
133 basename = tiles/tpo,
134 },
135 }
136 }
137 \__mermap_new_supply_source_topplusopen:nn { p5 }{ p5 }
138 \__mermap_new_supply_source_topplusopen:nn { p10 }{ p10 }
139 \__mermap_new_supply_source_topplusopen:nn { p17.5 }{ p17 }
140 \__mermap_new_supply_source_topplusopen:nn { p25 }{ p25 }
141 \__mermap_new_supply_source_topplusopen:nn { p50 }{ p50 }
142 \__mermap_new_supply_source_topplusopen:nn { p100 }{ p100 }
143 \__mermap_new_supply_source_topplusopen:nn { p250 }{ p250 }
144
145
146 \keys_define:nn { mermap/supply }
147 {
148 __attribution_thunderforest .meta:nn = {mermap/supply} {
149 attribution = {
150 Maps~\textcopyright\nobreakspace\href{https://www.thunderforest.com/}{Thunderforest},
151 \ Data~\textcopyright\nobreakspace\href{https://openstreetmap.org/copyright}{OpenStreetMap~contributors}
152 },
153 attribution~print = {
154 Maps~\textcopyright\nobreakspace www.thunderforest.com,
155 \ Data~\textcopyright\nobreakspace www.osm.org/copyright
156 }
157 }
158 }
159 \__mermap_new_supply_source:nn { thunderforest~opencyclemap }
160 {
161 url~with~api~key = {https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
162 __attribution_thunderforest,
163 basename = tiles/opencyclemap,
164 }
165 \__mermap_new_supply_source:nn { thunderforest~transport }
166 {
167 url~with~api~key = {https://tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
168 __attribution_thunderforest,
169 basename = tiles/transport,
170 }
171 \__mermap_new_supply_source:nn { thunderforest~landscape }
172 {
173 url~with~api~key = {https://tile.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
174 __attribution_thunderforest,
175 basename = tiles/landscape,
176 }
177 \__mermap_new_supply_source:nn { thunderforest~outdoors }
178 {
179 url~with~api~key = {https://tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
180 __attribution_thunderforest,
181 basename = tiles/outdoors,
182 }
183 \__mermap_new_supply_source:nn { thunderforest~atlas }
184 {
185 url~with~api~key = {https://tile.thunderforest.com/atlas/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
186 __attribution_thunderforest,
187 basename = tiles/atlas,
188 }
189 \__mermap_new_supply_source:nn { thunderforest~transport-dark }
190 {
191 url~with~api~key = {https://tile.thunderforest.com/transport-dark/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
192 __attribution_thunderforest,
193 basename = tiles/transport-dark,
194 }
195 \__mermap_new_supply_source:nn { thunderforest~spinal-map }
196 {
197 url~with~api~key = {https://tile.thunderforest.com/spinal-map/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
198 __attribution_thunderforest,
199 basename = tiles/spinal-map,
200 }
201 \__mermap_new_supply_source:nn { thunderforest~pioneer }
202 {
203 url~with~api~key = {https://tile.thunderforest.com/pioneer/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
204 __attribution_thunderforest,
205 basename = tiles/pioneer,
206 }
207 \__mermap_new_supply_source:nn { thunderforest~mobile-atlas }
208 {
209 url~with~api~key = {https://tile.thunderforest.com/mobile-atlas/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
210 __attribution_thunderforest,
211 basename = tiles/mobile-atlas,
212 }
213 \__mermap_new_supply_source:nn { thunderforest~neighbourhood }
214 {
215 url~with~api~key = {https://tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png?apikey=}{thunderforest}{},
216 __attribution_thunderforest,
217 basename = tiles/neighbourhood,
218 }
219
220
221
222 %% openrouteservice mapsurfer is DISCONTINUED after June 2020
223 %% Therefore, the following source is DEPRECATED and will be removed in future
224 \__mermap_new_supply_source:nn { openrouteservice~mapsurfer }
225 {
226 url~with~api~key = {https://api.openrouteservice.org/mapsurfer/{z}/{x}/{y}.png?api_key=}{openrouteservice}{},
227 attribution = {
228 Service~\textcopyright\nobreakspace\href{https://openrouteservice.org/}{openrouteservice.org}
229 \nobreakspace\textbar\nobreakspace
230 Map~data~\textcopyright\nobreakspace\href{https://openstreetmap.org/copyright}{OpenStreetMap}~contributors
231 },
232 attribution~print = {
233 Service~\textcopyright\nobreakspace openrouteservice.org
234 \nobreakspace\textbar\nobreakspace
235 Map~data~\textcopyright\nobreakspace OpenStreetMap~contributors
236 },
237 basename = tiles/mapsurfer,
238 }
239
240 \keys_define:nn { mermap/supply }% DISCONTINUED after July 2023 and DEPRECATED
241 {
242 __attribution_stamen .meta:nn = {mermap/supply} {
243 attribution = {
244 Map~tiles~by~\href{http://stamen.com}{Stamen~Design},
245 \ under~\href{http://creativecommons.org/licenses/by/3.0}{CC~BY~3.0}.
246 \ Data~by~\href{http://openstreetmap.org}{OpenStreetMap},
247 \ under~\href{http://www.openstreetmap.org/copyright}{ODbL}.
248 },
249 attribution~print = {
250 Map~tiles~by~Stamen~Design~(stamen.com),
251 \ under~CC~BY~3.0.
252 \ Data~by~OpenStreetMap,
253 \ under~ODbl~(www.openstreetmap.org/copyright).
254 }
255 }
256 }
257 \__mermap_new_supply_source:nn { stamen~terrain }% DISCONTINUED after July 2023 and DEPRECATED
258 {
259 url = {https://stamen-tiles-a.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png},
260 __attribution_stamen,
261 basename = tiles/terrain,
262 }
263 \__mermap_new_supply_source:nn { stamen~terrain-background }% DISCONTINUED after July 2023 and DEPRECATED
264 {
265 url = {https://stamen-tiles-a.a.ssl.fastly.net/terrain-background/{z}/{x}/{y}.png},
266 __attribution_stamen,
267 basename = tiles/terrain-background,
268 }
269 \__mermap_new_supply_source:nn { stamen~terrain-labels }% DISCONTINUED after July 2023 and DEPRECATED
270 {
271 url = {https://stamen-tiles-a.a.ssl.fastly.net/terrain-labels/{z}/{x}/{y}.png},
272 __attribution_stamen,
273 basename = tiles/terrain-labels,
274 }
275 \__mermap_new_supply_source:nn { stamen~terrain-lines }% DISCONTINUED after July 2023 and DEPRECATED
276 {
277 url = {https://stamen-tiles-a.a.ssl.fastly.net/terrain-lines/{z}/{x}/{y}.png},
278 __attribution_stamen,
279 basename = tiles/terrain-lines,
280 }
281 \__mermap_new_supply_source:nn { stamen~toner }% DISCONTINUED after July 2023 and DEPRECATED
282 {
283 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner/{z}/{x}/{y}.png},
284 __attribution_stamen,
285 basename = tiles/toner,
286 }
287 \__mermap_new_supply_source:nn { stamen~toner-lite }% DISCONTINUED after July 2023 and DEPRECATED
288 {
289 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png},
290 __attribution_stamen,
291 basename = tiles/toner-lite,
292 }
293 \__mermap_new_supply_source:nn { stamen~toner-hybrid }% DISCONTINUED after July 2023 and DEPRECATED
294 {
295 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner-hybrid/{z}/{x}/{y}.png},
296 __attribution_stamen,
297 basename = tiles/toner-hybrid,
298 }
299 \__mermap_new_supply_source:nn { stamen~toner-background }% DISCONTINUED after July 2023 and DEPRECATED
300 {
301 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner-background/{z}/{x}/{y}.png},
302 __attribution_stamen,
303 basename = tiles/toner-background,
304 }
305 \__mermap_new_supply_source:nn { stamen~toner-labels }% DISCONTINUED after July 2023 and DEPRECATED
306 {
307 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner-labels/{z}/{x}/{y}.png},
308 __attribution_stamen,
309 basename = tiles/toner-labels,
310 }
311 \__mermap_new_supply_source:nn { stamen~toner-lines }% DISCONTINUED after July 2023 and DEPRECATED
312 {
313 url = {https://stamen-tiles-a.a.ssl.fastly.net/toner-lines/{z}/{x}/{y}.png},
314 __attribution_stamen,
315 basename = tiles/toner-lines,
316 }
317 \__mermap_new_supply_source:nn { stamen~watercolor }% DISCONTINUED after July 2023 and DEPRECATED
318 {
319 url = {https://stamen-tiles-a.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png},
320 attribution = {
321 Map~tiles~by~\href{http://stamen.com}{Stamen~Design},
322 \ under~\href{http://creativecommons.org/licenses/by/3.0}{CC~BY~3.0}.
323 \ Data~by~\href{http://openstreetmap.org}{OpenStreetMap},
324 \ under~\href{http://creativecommons.org/licenses/by-sa/3.0}{CC~BY~SA}.
325 },
326 attribution~print = {
327 Map~tiles~by~Stamen~Design~(stamen.com),
328 \ under~CC~BY~3.0.
329 \ Data~by~OpenStreetMap,
330 \ under~CC~BY~SA.
331 },
332 basename = tiles/watercolor,
333 }