diff --git a/python/plugins/processing/algs/qgis/TilesXYZ.py b/python/plugins/processing/algs/qgis/TilesXYZ.py index 4a93cf6947c..79dfa980f9d 100644 --- a/python/plugins/processing/algs/qgis/TilesXYZ.py +++ b/python/plugins/processing/algs/qgis/TilesXYZ.py @@ -503,7 +503,7 @@ LEAFLET_TEMPLATE = ''' minZoom: {minzoom}, maxZoom: {maxzoom}, tms: {tms}, - attribution: 'Generated by TilesXYZ' + attribution: '{attribution}' }}).addTo(map); @@ -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)