diff --git a/src/tms_service.js b/src/tms_service.js index c42a2cd..1c4c569 100644 --- a/src/tms_service.js +++ b/src/tms_service.js @@ -47,9 +47,12 @@ export class TMSService { const url = this._proxyPath + tileUrl; return this._emsClient.extendUrlWithParams(url); }); + // Override the attribution in the sources with the localized attribution + const htmlAttribution = await this.getHTMLAttribution() inlinedSources[sourceName] = { type: 'vector', ...sourceJson, + attribution: htmlAttribution, tiles: extendedTileUrls }; }