Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.9.0 Alpha
-
None
Description
Observed behavior: when a dynamically created Map is embedded in a Page{}, the z-order is either completely on top (any z>=0), or completely underneath/invisible (any z<0). This behavior is not observed when the Map is created as part of a statically instantiated Component.
However, this works normally when the Page{} components are embedded inside an Item{}.
Expected behavior: the Map should continue to obey z-order values even when dynamically created as a Page{} child.
Reproducible example: https://github.com/paoletto/LocationXamples/blob/master/MapLayersSwipeView/main.qml
In this example, the second page shows a map on top of a large red square and beneath a small red square. The first page shows the same (only blue instead of red), but because of the z-order bug the elements must be embedded inside an Item{}.
------------
Special thanks to paangele for assistance in reproducing this bug, as well as the insight that a nested Item{} is a workaround.