-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@Rinn37 , QField will only change the extent of the layout's reference map set here: If we would be to arbitrarily change the extent of all map items, you can imagine we would rapidly mess up with static overview map items, etc. What you can do is use data-defined properties to set the x min y min x max and y max of your second map item by fetching the map extent of the map QField modifies. You can do that using Here are the 4 values you'd need:
|
Beta Was this translation helpful? Give feedback.
-
@nirvn Thank you very much for your response. The solution worked perfectly! |
Beta Was this translation helpful? Give feedback.
@Rinn37 , QField will only change the extent of the layout's reference map set here:
If we would be to arbitrarily change the extent of all map items, you can imagine we would rapidly mess up with static overview map items, etc.
What you can do is use data-defined properties to set the x min y min x max and y max of your second map item by fetching the map extent of the map QField modifies. You can do that using
item_variables( 'Map 1')['map_extent']
where 'Map 1' is the ID of the reference map used by QField to change the extent.Here are the 4 values you'd need: