Add license querystring to EMS requests in Vega (#112765)

This fixes a regression in Vega Maps that limits users to max zoom 10 regardless of distribution

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nick Peihl 2021-09-23 08:32:11 -07:00 committed by GitHub
parent cbbf0fa6ce
commit 1e25d199cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,11 @@ export class MapServiceSettings {
tileApiUrl: this.config.emsTileApiUrl,
landingPageUrl: this.config.emsLandingPageUrl,
});
// Allow zooms > 10 for Vega Maps
// any kibana user, regardless of distribution, should get all zoom levels
// use `sspl` license to indicate this
this.emsClient.addQueryParams({ license: 'sspl' });
}
public async getTmsService(tmsTileLayer: string) {