Bug report #18210

Dynamic grid labels in layout doesn't update automatically

Added by Klas Karlsson almost 5 years ago. Updated about 4 years ago.

Category:Map Composer/Printing
Affected QGIS version:3.4.3 Regression?:Yes
Operating System:Ubuntu 18.04 alpha Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26101


I've got a custom format grid label, offset 500 m to my 1000 m UTM grid, that in 2.18 dynamically updated a index-grid for my map when I panned the map contents (image).

In QGIS 3 I need to manually open and confirm the settings for the custom format coordinates to update to a new extent after panning the map.
The labels used to update when ever the map extent was changed...

I also use the same x_min/y_min expression to print corner labels and that updates dynamically as it should.

Code for custom label (map item id is "main"):

WHEN @grid_axis = 'y'
(@grid_number-to_int(y_min(map_get(item_variables('main'),'map_extent'))/1000)*1000+500)/1000 , 1)
WHEN @grid_axis = 'x'
THEN (@grid_number-to_int(x_min(map_get(item_variables('main'),'map_extent'))/1000)*1000+500)/1000

Skärmbild från 2018-02-25 16-58-02.png (1.62 MB) Klas Karlsson, 2018-02-25 04:57 PM

index.png (208 KB) Klas Karlsson, 2018-12-28 12:26 PM


#1 Updated by Giovanni Manghi almost 5 years ago

  • Priority changed from Normal to High

#2 Updated by Paolo Cavallini about 4 years ago

Could you please check again on current release?

#3 Updated by Klas Karlsson about 4 years ago

Tried on QGIS 3.4.3...

Still a problem! Panning the map doesn't update the custom grid...

#4 Updated by Giovanni Manghi about 4 years ago

  • Affected QGIS version changed from 3.0.0 to 3.4.3

Also available in: Atom PDF