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