The links contained in the files must be adapted to the local environment. This can be done, for example, by "search and replace" across all files. To do this, replace the URL path https://sgx.geodatenzentrum.de/gdz_basemapde_vektor by the domain and the path of your own server. The URL must be changed to the domain via which the browsers and applications are to access the data.
Alternatively, the URLs can be customised individually in the following files.
Styles
In all JSON files in the "styles" folder, the URLs under "glyphs", "sprites" and "sources" must be changed.
Example styles/bm_web_col.json:
{
"id": "bm_web_col",
"version": 8,
"name": "bm_web_col",
"metadata": {
"basemapde:style-version": x.x,
"mapbox:autocomposite": false,
"mapbox:type": "template",
"maputnik:renderer": "mbgljs"
},
"centre": [10,51],
"zoom": 6,
"glyphs": "https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/fonts/{fontstack}/{range}.pbf",
"sprite": "https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/sprites/bm_web_col_sprite",
"transition": {
"duration": 300,
"delay": 0
},
"sources": {
"smarttiles_en": {
"type": "vector",
"attribution": "© 2024 basemap.de / BKG | Data sources: © GeoBasis-DE",
"url": "https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/tiles/v1/bm_web_de_3857/bm_web_de_3857.json"
}
},
"layers": [
...
]
}
{
"attribution": "GeoBasis-DE",
"basename": "bm_web_en_3857",
"bounds": [
5.8,
47.2,
15.1,
55.1
],
"centre": [
10.45,
51.150000000000006,
2
],
"format": "pbf",
"id": "bm_web_en_3857",
"maxzoom": 15,
"minzoom": 0,
"name": "bm_web_en_3857",
"scheme": "xyz",
"tilejson": "2.2.0",
"tiles": [
"https://sgx.geodatenzentrum.de/gdz_basemapde_vektor/tiles/v1/bm_web_de_3857/{z}/{x}/{y}.pbf"
],
"vector_layers": [
...
]
}