You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I'm encountering some issues that could be resolved more easily if I could retrieve layer and source details by their respective IDs.
I found the documentation for Maplibre Android that outlines the method to get layer information: MapLibre Style API. However, I noticed from a comment on GitHub Issue #151 that this functionality has not yet been implemented for iOS.
In the iOS method channel code, I found the implementation for getting layer IDs:
varlayerIds=[String]()
guard let style = mapView.style else{return}
style.layers.forEach{ layer in layerIds.append(layer.identifier)}varreply=[String: NSObject]()reply["layers"]= layerIds asNSObjectresult(reply)
This implementation currently only returns the layer IDs. It seems logical to extend this functionality to find a layer by its ID and return the corresponding layer details.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project, I'm encountering some issues that could be resolved more easily if I could retrieve layer and source details by their respective IDs.
I found the documentation for Maplibre Android that outlines the method to get layer information: MapLibre Style API. However, I noticed from a comment on GitHub Issue #151 that this functionality has not yet been implemented for iOS.
In the iOS method channel code, I found the implementation for getting layer IDs:
This implementation currently only returns the layer IDs. It seems logical to extend this functionality to find a layer by its ID and return the corresponding layer details.
Could we consider implementing this feature?
Beta Was this translation helpful? Give feedback.
All reactions