Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lambda-tiler): Load MaxImagePixelSize from import api. #2206

Merged
merged 3 commits into from
May 19, 2022

Conversation

Wentao-Kuang
Copy link
Contributor

No description provided.

@Wentao-Kuang Wentao-Kuang requested a review from a team as a code owner May 19, 2022 02:39
@@ -155,7 +155,7 @@ export class Cutline {
* Generate an optimized WebMercator tile cover for the supplied source images
* @param sourceMetadata contains images bounds and projection info
*/
optimizeCovering(sourceMetadata: SourceMetadata): NamedBounds[] {
optimizeCovering(sourceMetadata: SourceMetadata, maxImageSize?: number): NamedBounds[] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be defaulted in the function declaration with , maxImageSize = MaxImagePIxelWidth and means you can remove l168

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good pick. Fixed.

@Wentao-Kuang Wentao-Kuang requested a review from blacha May 19, 2022 02:53
blacha
blacha previously approved these changes May 19, 2022
@kodiakhq kodiakhq bot merged commit b851934 into master May 19, 2022
@kodiakhq kodiakhq bot deleted the feat/cli-image-pixel branch May 19, 2022 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants