This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
MapboxMap should have methods to list layers and sources #7285
Labels
Android
Mapbox Maps SDK for Android
GL JS parity
For feature parity with Mapbox GL JS
navigation
For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
runtime styling
Milestone
MapboxMap
should have the following methods, which are possible now that #6097 has landed in master:List<Layer> getLayers()
void addLayerAfter(Layer, String)
(not sure about the naming, but adding a layer above a particular layer is more commonplace than adding one below it)void addLayer(int, Layer)
Layer removeLayer(int)
List<Source> getSources()
Additionally,
removeLayer(Layer)
andremoveLayer(String)
should returnLayer
.These methods will all be present in iOS SDK v3.4.0 and macOS SDK v0.3.0. Labeling as GL JS parity because these operations are also possible in GL JS using
getStyle()
andsetStyle()
./cc @ivovandongen
The text was updated successfully, but these errors were encountered: