Skip to content

validate layer config zoom values are within min/max bounds #38

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

Conversation

brian-dellabetta
Copy link
Contributor

resolves #24

As discussed, layer configurations with minzoom values below the MinZoom server configuration or maxzoom values above the MaxZoom server configuration will trigger a panic at startup.

I added a couple tests and updated the comments describing MinZoom/MaxZoom to add some more clarity, based on conversation thread referenced above.

@brian-dellabetta
Copy link
Contributor Author

@jerluc I can't assign reviewers on forked pull requests, so I'm linking you in this way :)

Copy link
Member

@jerluc jerluc left a comment

Choose a reason for hiding this comment

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

@brian-dellabetta, these changes look generally good to me, but I'll hold off on merge until you can get your suggested change to implement a simple validator interface working for LayerConfig.

@jerluc
Copy link
Member

jerluc commented Jun 7, 2021

Conflicts have been separately resolved in the updated PR #49 and merged down. Thanks again for your contributions @brian-dellabetta!

@jerluc jerluc closed this Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layer configuration should have some semantic checks for min and max zooms
2 participants