At QGIS 3.34.1, I have created a layout with two maps superimposed over each other. I need to sandwich a rectangle (using Add Item > Add Shape > Add Rectangle) between the two maps.
When I first add the rectangle, its default position is on top of the Item stack, and it is visible in the layout:
However, when I move the rectangle down in the Item stack so that it is positioned between the maps, the rectangle disappears. I expected the rectangle to draw outside the polygons because they are the only two features in that layer:
The screenshot below shows what I would like to accomplish with the rectangle. I created this by adding Polyline sections.
How can I create this "sandwiched" effect using a Rectangle shape?