Open pathmapper opened 2 years ago
Yeah and there's not way to get the attributes of a given page and if I recall we can't get the position of items, which is a missing feature.
Though in the meantime you can possibly used the variable @layout_pageoffsets
to get the top of the page you want.
It seems to me the issue may be in https://github.com/qgis/QGIS/blob/6af23a67be78a04c1c6c46cf4f7fd0b38cb61e37/src/core/layout/qgslayoutitem.cpp#L467-L509 where the conversion of the position relative to the page to a an absolute position based on the page number https://github.com/qgis/QGIS/blob/6af23a67be78a04c1c6c46cf4f7fd0b38cb61e37/src/core/layout/qgslayoutitem.cpp#L477-L480 is made before the data defined values are applyed and not after as it probably should be.
Thanks @roya0045, @agiudiceandrea - @layout_pageoffsets
is indeed a good workaround.
What is the bug or the crash?
Print Layout - Map postion based on expression ignores field "Page", instead the position is only calculated from reference point on page 1.
Steps to reproduce the issue
Y
create expression:0
Page
is ignored.https://user-images.githubusercontent.com/20856381/192968306-67ef6ded-c657-4997-820d-4e593cbf352d.mp4
Versions
Active Python plugins db_manager | 0.1.20 grassprovider | 2.12.99 MetaSearch | 0.3.6 processing | 2.12.99 sagaprovider | 2.12.99
Supported QGIS version
New profile
Additional context
No response