-
Notifications
You must be signed in to change notification settings - Fork 177
feat: Enhance and add examples #713
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
base: release-0.26.0
Are you sure you want to change the base?
Conversation
…ive editing features. Update main.dart to include new examples.
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
This pull request enhances the MapLibre GL example application by adding four new interactive examples demonstrating draggable and animated features for both annotations and style layers. The PR also includes several improvements to existing examples and updates resource URLs to use the official MapLibre demo tiles server.
Changes:
- Added four new example pages: draggable/animated annotations and draggable/animated style layers
- Updated glyphs URLs from orangemug.github.io to demotiles.maplibre.org for better reliability
- Refactored symbol overlap settings to reduce redundant API calls and added diagnostic logging
- Improved error logging with stack traces and enhanced type safety in custom marker example
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| maplibre_gl_example/lib/main.dart | Added imports for new examples, WASM detection logging, and registered new example pages |
| maplibre_gl_example/lib/examples/layers/edit_style_layer_draggable.dart | New example demonstrating draggable GeoJSON features on style layers |
| maplibre_gl_example/lib/examples/layers/edit_style_layer_animated.dart | New example showing animated property updates for style layers |
| maplibre_gl_example/lib/examples/annotations/edit_annotation_draggable.dart | New example for draggable symbol and circle annotations |
| maplibre_gl_example/lib/examples/annotations/edit_annotation_animated.dart | New example demonstrating animated annotation updates |
| maplibre_gl_example/lib/examples/layers/circle_layer_example.dart | Enhanced error logging with stack trace capture |
| maplibre_gl_example/lib/examples/basics/multi_style_switch.dart | Updated glyphs URL, made _onMapCreated async to apply initial style, removed debug log |
| maplibre_gl_example/lib/examples/annotations/custom_marker.dart | Improved type safety using toDouble() instead of type cast |
| maplibre_gl_example/lib/examples/annotations/annotations_example.dart | Refactored overlap settings to _onStyleLoaded, added tap event logging |
| maplibre_gl_example/assets/style.json | Updated glyphs URL to official MapLibre demo tiles server |
| maplibre_gl_example/assets/osm_style.json | Added glyphs URL using official MapLibre demo tiles server |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Closes #712