-
-
Notifications
You must be signed in to change notification settings - Fork 23
feat: add minZoom, maxZoom
#374
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
Codecov Report❌ Patch coverage is 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds minZoom and maxZoom support across style layers and platform controllers to control layer visibility by zoom level.
- Introduces non-nullable minZoom/maxZoom on StyleLayer and Layer base classes, with defaults.
- Wires minZoom/maxZoom through Android, iOS, and Web style controllers into the underlying platform APIs.
- Exposes minzoom/maxzoom in the Web interop LayerSpecification.
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/src/style/layers/style_layer.dart | Makes minZoom/maxZoom non-nullable with default values and documents ranges. |
| lib/src/style/layers/*_style_layer.dart | Passes minZoom/maxZoom defaults through various layer constructors. |
| lib/src/platform/web/style_controller.dart | Forwards minZoom/maxZoom to JS LayerSpecification. |
| lib/src/platform/web/interop/map.dart | Adds minzoom/maxzoom fields to LayerSpecification interop. |
| lib/src/platform/ios/style_controller.dart | Always sets minimumZoomLevel/maximumZoomLevel on native layer. |
| lib/src/platform/android/style_controller.dart | Always sets min/max zoom on native layer. |
| lib/src/layer/layer.dart | Adds minZoom/maxZoom to high-level Layer and includes in hashCode. |
| lib/src/layer/*_layer.dart | Adds minZoom/maxZoom to public Layer constructors and forwards to StyleLayer. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Deploying flutter-maplibre with
|
| Latest commit: |
dc90217
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://342e364f.flutter-maplibre.pages.dev |
| Branch Preview URL: | https://feat-minzoom-maxzoom.flutter-maplibre.pages.dev |
minZoom/maxZoomin the layers #371