From 88363b653aff9fec02148a89b3517cf811bfc02c Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Thu, 11 Jan 2024 12:51:21 +0100 Subject: [PATCH] attribution --- scripts/http_host/metadata_to_tilejson.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/http_host/metadata_to_tilejson.py b/scripts/http_host/metadata_to_tilejson.py index 1e63195..c478cc4 100755 --- a/scripts/http_host/metadata_to_tilejson.py +++ b/scripts/http_host/metadata_to_tilejson.py @@ -35,6 +35,14 @@ def cli(metadata_path: Path, tilejson_path: Path, url_prefix: str, minify: bool) assert not metadata_json_key # check that no more keys are left tilejson['attribution'] = metadata.pop('attribution') + + # overwriting new style OSM license, until fixed in tile_gen + tilejson['attribution'] = ( + 'OpenFreeMap ' + '© OpenMapTiles ' + 'Data from OpenStreetMap' + ) + tilejson['bounds'] = [float(n) for n in metadata.pop('bounds').split(',')] tilejson['center'] = [float(n) for n in metadata.pop('center').split(',')] tilejson['center'][2] = 1