-
Notifications
You must be signed in to change notification settings - Fork 141
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
layerPositionedContent renders layers in reverse order #2524
Comments
Thanks for the issue. We'll let you know once we've fixed it. (internal ticket: MAPSAND-1924) |
Hi @jeffbarge I can not reproduce the issue on my device, can you share the full code snippet with the way you add this composable to the map? |
Also I've noticed that the render order of the layers changes as I zoom in and out. See attached video. |
BTW - it looks to be zoom level 6 where this takes place |
@jeffbarge This is expected behaviour. See explanation at https://docs.mapbox.com/android/maps/guides/styles/work-with-layers/#rendering-order:
|
it's expected that it change as you zoom? If this is the case, it sounds like we simply cannot expect to have a deterministic render order? |
@jeffbarge I'm reopening it, there might still be an issue with the initial order in the On the other hand, in case you want the line layer on top of the symbol and be deterministic render order then you need to follow the docs recommendation |
Environment
Observed behavior and steps to reproduce
When using a Composable function with more than 1 layer, and adding to the map via
layerPositionedContent
, the first layer added renders on top, which is backwards from when adding the same composable to the mapContent.Example:
Note that the text from the SymbolLayer renders beneath the LineLayer, even though it was added last.
Expected behavior
The last Layer added should render on top. This is the behavior when adding layers to MapContent.
Notes / preliminary analysis
Additional links and references
The text was updated successfully, but these errors were encountered: