From ace75b0b8dc0a527c7a62977bd0ae1fe93ea7796 Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Wed, 10 Jul 2024 10:48:49 +1200 Subject: [PATCH] We need to pass config into imagery api --- packages/landing/src/url.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/landing/src/url.ts b/packages/landing/src/url.ts index a8125fa48..647d27447 100644 --- a/packages/landing/src/url.ts +++ b/packages/landing/src/url.ts @@ -64,7 +64,8 @@ export const WindowUrl = { }, toImageryUrl(layerId: string, imageryType: string): string { - return `${this.baseUrl()}/v1/imagery/${layerId}/${imageryType}`; + const query = toQueryString({ config: ensureBase58(Config.map.config) }); + return `${this.baseUrl()}/v1/imagery/${layerId}/${imageryType}${query}`; }, toTileUrl(params: TileUrlParams): string {