From ab711d66b103aa0fc252c08c1636c0c94a645b0f Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Thu, 11 Jul 2024 08:55:19 +1200 Subject: [PATCH] fix(landing): Need to pass config parameter into imagery api (#3313) ### Motivation Debug page cog and capture-area checkbox should get the geojson file from target config parameter. ### Modifications This will fix the problem of not found gejson file with a config paramemeter ### Verification --- 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 {