-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move to query parameters for pipeline selection (#3136)
#### Motivation inline parameters in the URL were hard to parse and did not allow for future expansion of pipeline configuration, by moving to a query parameter the pipline can be configured easier and has opportunities for expansion later. #### Modification switches from a inline url to a query parameter for pipline selection #### Checklist _If not applicable, provide explanation of why._ - [ ] Tests updated - [ ] Docs updated - [ ] Issue linked in Title
- Loading branch information
Showing
16 changed files
with
190 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ConfigTileSetRasterOutput } from './tile.set.js'; | ||
|
||
export const DefaultTerrainRgbOutput: ConfigTileSetRasterOutput = { | ||
title: 'TerrainRGB', | ||
name: 'terrain-rgb', | ||
pipeline: [{ type: 'terrain-rgb' }], | ||
output: { | ||
// terrain rgb cannot be resampled after it has been made | ||
lossless: true, | ||
// Zero encoded as a TerrainRGB | ||
background: { r: 1, g: 134, b: 160, alpha: 1 }, | ||
resizeKernel: { in: 'nearest', out: 'nearest' }, | ||
}, | ||
} as const; | ||
|
||
export const DefaultColorRampOutput: ConfigTileSetRasterOutput = { | ||
title: 'Color ramp', | ||
name: 'color-ramp', | ||
pipeline: [{ type: 'color-ramp' }], | ||
output: { | ||
background: { r: 1, g: 134, b: 160, alpha: 1 }, | ||
}, | ||
} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.