mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
Make attribution more informative and translatable
This commit is contained in:
parent
9bcce8d9c7
commit
0e533cda96
@ -503,7 +503,7 @@ LEAFLET_TEMPLATE = '''
|
||||
minZoom: {minzoom},
|
||||
maxZoom: {maxzoom},
|
||||
tms: {tms},
|
||||
attribution: 'Generated by TilesXYZ'
|
||||
attribution: '{attribution}'
|
||||
}}).addTo(map);
|
||||
</script>
|
||||
</body>
|
||||
@ -600,7 +600,8 @@ class TilesXYZAlgorithmDirectory(TilesXYZAlgorithmBase):
|
||||
tilesource="'file:///{}/{{z}}/{{x}}/{{y}}.{}'".format(output_dir_safe, self.tile_format.lower()),
|
||||
minzoom=self.min_zoom,
|
||||
maxzoom=self.max_zoom,
|
||||
tms='true' if is_tms else 'false'
|
||||
tms='true' if is_tms else 'false',
|
||||
attribution=self.tr('Created by QGIS algorithm:') + ' "' + self.displayName() + '"'
|
||||
)
|
||||
with open(output_html, "w") as fh:
|
||||
fh.write(html_code)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user