Skip to content

Commit 2b6c7d5

Browse files
authored
Merge pull request #14 from nickpeihl/fix/set-vt-attribution
Inject correct attribution into vector tile sources
2 parents d556141 + 3d0512c commit 2b6c7d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tms_service.js

+3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@ export class TMSService {
4747
const url = this._proxyPath + tileUrl;
4848
return this._emsClient.extendUrlWithParams(url);
4949
});
50+
// Override the attribution in the sources with the localized attribution
51+
const htmlAttribution = await this.getHTMLAttribution()
5052
inlinedSources[sourceName] = {
5153
type: 'vector',
5254
...sourceJson,
55+
attribution: htmlAttribution,
5356
tiles: extendedTileUrls
5457
};
5558
}

0 commit comments

Comments
 (0)