Skip to content

Add temporal control plugin#102

Merged
giswqs merged 4 commits intomainfrom
claude/add-temporal-control-plugin-011CUSnNtVjLSHWvkULmhKfU
Oct 25, 2025
Merged

Add temporal control plugin#102
giswqs merged 4 commits intomainfrom
claude/add-temporal-control-plugin-011CUSnNtVjLSHWvkULmhKfU

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Oct 25, 2025

No description provided.

claude and others added 2 commits October 24, 2025 22:10
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>
Copilot AI review requested due to automatic review settings October 25, 2025 04:53
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Oct 25, 2025

@github-actions github-actions Bot temporarily deployed to pull request October 25, 2025 04:56 Inactive
@giswqs giswqs changed the title Claude/add temporal control plugin 011 cu sn nt vj lsh wvk u lmh kf u Add temporal control plugin Oct 25, 2025
@giswqs giswqs merged commit 97d68b4 into main Oct 25, 2025
7 checks passed
@giswqs giswqs deleted the claude/add-temporal-control-plugin-011CUSnNtVjLSHWvkULmhKfU branch October 25, 2025 05:08
@github-actions github-actions Bot temporarily deployed to pull request October 25, 2025 05:08 Inactive
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.

3 participants