mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
attribution
This commit is contained in:
@@ -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'] = (
|
||||
'<a href="https://openfreemap.org/" target="_blank">OpenFreeMap</a> '
|
||||
'<a href="https://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a> '
|
||||
'Data from <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a>'
|
||||
)
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user