Skip to content

Commit

Permalink
fix(landing): Need to pass config parameter into imagery api (#3313)
Browse files Browse the repository at this point in the history
### 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

<!-- TODO: Say how you tested your changes. -->
  • Loading branch information
Wentao-Kuang authored Jul 10, 2024
1 parent 5a1d633 commit ab711d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/landing/src/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ab711d6

Please sign in to comment.