Geographic Information Systems Asked on May 16, 2021
I have a problem.
In my QGIS project, all the labels appear the same despite the zoom level. What looks good when the zoom is big, it’s not as great when zooming out.
I found a way to get it disappeared,
Label display at different zoom level of single shapefile?
but I need it smaller only. Is there any way to set the different font sizes for different zoom levels?
I’ve already the expression based on one of the table value:
CASE
WHEN "Visible" = 1 then color_rgb (0, 0, 0)
End
How can I integrate this expression with the answer below?
You can set an expression based rule for the font size, something along the lines of :
if(@map_scale<1000, 10, 30 /log(8, @map_scale))
This expression will make so the font size is 9 at a scale of 1:1001 to 5.8 at 1:50000 for example
you can play with the 30/log(8, @map_scale)
expression to try to have something that suits you better.
Correct answer by Louis Cottereau on May 16, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP