Skip to content

Add add_source method#116

Merged
giswqs merged 1 commit intomainfrom
source
Nov 8, 2025
Merged

Add add_source method#116
giswqs merged 1 commit intomainfrom
source

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 8, 2025 04:23
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 8, 2025

@github-actions github-actions Bot temporarily deployed to pull request November 8, 2025 04:24 Inactive
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 a new add_source() method to the MapLibreMap class and provides comprehensive documentation through an example Jupyter notebook. The method enables explicit source management by tracking sources in a source_dict attribute while delegating the JavaScript synchronization to the parent class.

  • Implements add_source() method in MapLibreMap that tracks sources locally in source_dict
  • Adds comprehensive example notebook demonstrating various source types (GeoJSON points, lines, polygons, and raster tiles)
  • Documents source inspection capabilities using source_dict and get_sources()

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/examples/maplibre/add_source_example.ipynb New example notebook demonstrating the add_source() method with various data source types
anymap/maplibre.py Implements add_source() override that tracks sources in source_dict before calling parent implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@giswqs giswqs merged commit 1a64ce8 into main Nov 8, 2025
14 checks passed
@giswqs giswqs deleted the source branch November 8, 2025 04:25
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.

2 participants