Merged
Conversation
This commit adds support for the maplibre-gl-temporal-control plugin, which enables temporal animation controls for MapLibre GL JS maps. The plugin allows users to display different map layers sequentially as animated frames to show changes over time. Changes: - Added temporal control library loader in maplibre_widget.js - Added temporal control case handlers for both normal and restore operations - Added add_temporal_control() method to MapLibreMap class - Created comprehensive demonstration notebook with multiple examples: * Basic temporal animation with point data * Multiple layer types animation * Monthly weather animation * Performance mode usage The implementation follows the existing pattern for other plugins like geocoder, export, and basemap controls. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds temporal control functionality to MapLibre maps in AnyMap, enabling animation of time-series data with playback controls. The implementation integrates the maplibre-gl-temporal-control plugin.
Key Changes:
- Added
add_temporal_control()method to enable time-based layer animation with configurable frames and playback settings - Integrated maplibre-gl-temporal-control plugin (v1.2.0) loading in the JavaScript widget
- Created comprehensive example notebook demonstrating various temporal animation use cases
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/examples/temporal_control_example.ipynb | Comprehensive example notebook with 5 different temporal animation scenarios (basic points, multiple layer types, monthly weather, performance mode, HTML export) |
| anymap/static/maplibre_widget.js | JavaScript integration for loading temporal control plugin and handling control restoration/addition |
| anymap/maplibre.py | Python API method for adding temporal controls with frame configuration and playback options |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🚀 Deployed on https://68fc5b66f29f229895da0ed3--opengeos.netlify.app |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.