Skip to content

Add support for maker group#142

Merged
giswqs merged 2 commits intomainfrom
marker-group
Nov 23, 2025
Merged

Add support for maker group#142
giswqs merged 2 commits intomainfrom
marker-group

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 23, 2025

Fix #123

marker-group

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

github-actions Bot commented Nov 23, 2025

@github-actions github-actions Bot temporarily deployed to pull request November 23, 2025 03:33 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 support for marker groups in MapLibre, addressing issue #123. Marker groups allow multiple markers to be grouped together as a single controllable layer with unified visibility and opacity controls through the layer control panel.

  • Adds add_marker_group() method to create groups of markers as controllable layers
  • Extends set_visibility(), set_opacity(), and remove_layer() to handle marker groups
  • Integrates marker groups with the layer control UI for seamless management

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
docs/examples/maplibre/marker_groups_example.ipynb Comprehensive Jupyter notebook demonstrating marker group functionality with multiple examples including basic usage, visibility/opacity control, multiple groups, customization, and integration with other layer types
anymap/static/maplibre_widget.js JavaScript implementation for marker group rendering, visibility/opacity controls, layer control integration, and cleanup logic
anymap/maplibre.py Python API implementation including add_marker_group() method and marker group-specific handling in set_visibility(), set_opacity(), and remove_layer() methods

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

Comment thread anymap/static/maplibre_widget.js Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions Bot temporarily deployed to pull request November 23, 2025 03:38 Inactive
@giswqs giswqs merged commit 9775a58 into main Nov 23, 2025
8 checks passed
@giswqs giswqs deleted the marker-group branch November 23, 2025 03:39
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.

Marker groups in Separate Layers

2 participants