Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make attribution more informative and translatable
  • Loading branch information
pathmapper authored and nyalldawson committed Jan 9, 2023
1 parent 9bcce8d commit 0e533cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/qgis/TilesXYZ.py
Expand Up @@ -503,7 +503,7 @@ def processAlgorithm(self, parameters, context, feedback):
minZoom: {minzoom},
maxZoom: {maxzoom},
tms: {tms},
attribution: 'Generated by TilesXYZ'
attribution: '{attribution}'
}}).addTo(map);
</script>
</body>
Expand Down Expand Up @@ -600,7 +600,8 @@ def processAlgorithm(self, parameters, context, feedback):
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)
Expand Down

0 comments on commit 0e533cd

Please sign in to comment.