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

[FEATURE] Get SourceProperties and LayerProperties objects by id #513

Open
bakotamas opened this issue Oct 17, 2024 · 0 comments
Open

[FEATURE] Get SourceProperties and LayerProperties objects by id #513

bakotamas opened this issue Oct 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bakotamas
Copy link

bakotamas commented Oct 17, 2024

Feature Description

Hello!

The getSourceIds and getLayerIds are existing methods of the MapLibreMapController class, they both return a Future<List<String>> of all the ids of the type.

I can't find a way to access the SourceProperties and LayerProperties objects of the sources and layers.

Maybe a
SourceProperties? getSourceProperties(String sourceId)
and a
LayerProperties? getLayerProperties(String layerId)
methods would be useful.

I hope its a reasonable request.
Regards, Tamas

Additional context

For example, if they would exist, it would be possible to toggle layer visibilities based on the source of the layers, or removing an entire source by id, and then add it back based on the saved properties...

@bakotamas bakotamas added the enhancement New feature or request label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant