Skip to content
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

feat(regions): set/clear selected regions programmatically #137

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

themustafaomar
Copy link
Owner

@themustafaomar themustafaomar commented Sep 28, 2023

Fixes: #131

Clear selected regions

// Clear all selected regions
map.clearSelectedRegions()

// Clear a single selected region
map.clearSelectedRegions('EG')

// Clear multiple selected regions
map.clearSelectedRegions(['EG', 'CA'])

Set selected regions

// Set Egypt as the only selected region
map.setSelectedRegions('EG')

// Set Egypt and Canada as the only selected regions
map.setSelectedRegions(['EG', 'CA'])

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.

Support for add/remove Regions individually?
1 participant