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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
While debugging this during the add step. A call to nativeMap.getLayers() revealed that it was adding the layers at least in the right index. Here is the ordered list of getId() on the layers.
I suspect that this is also connected to other issues in our app with LocationComponent's user location marker and any markers made with SymbolManager's .create.
Image showing location component's marker underneath the drawn boundary layers.
Image showing the marker is covered by the layers even though the layers are under the symbol and annotations layers.
The text was updated successfully, but these errors were encountered:
bwuso
changed the title
Layer Priority Order Is Ignored
Layer Index Is Ignored
Apr 9, 2019
Adding a layer using the Style.addLayerAbove, Style.addLayerBelow, Style.addLayerAt does not affect the map layer order.
This happened after upgrading the SDK from 5.4.1 to 7.4.0-Alpha (needed fix for disabling binaries).
This only happens on 7.4.0-Alpha builds
Steps to reproduce
style.addSource
.style.addLayerAfter(layer1, "custom-satellite")
.style.addSource
.style.addLayerBefore(layer2, layer1.getId());
.Expected behavior
Layer 2(the b/w satellite imagery) should be beneath Layer 1 (orange boundary line).
Actual behavior
Layer 2(the b/w satellite imagery) is on top of Layer 1 (orange boundary line).
Configuration
Android versions: 7.1.2
Device models: Google Pixel
Mapbox SDK versions: 7.4.0-alpha.1
Workaround
or
Debugging
While debugging this during the add step. A call to
nativeMap.getLayers()
revealed that it was adding the layers at least in the right index. Here is the ordered list of getId() on the layers.Other Possible Related Issues
I suspect that this is also connected to other issues in our app with LocationComponent's user location marker and any markers made with SymbolManager's
.create
.Image showing location component's marker underneath the drawn boundary layers.
Image showing the marker is covered by the layers even though the layers are under the symbol and annotations layers.
The text was updated successfully, but these errors were encountered: