Skip to main content
added 1 character in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

QGIS 3x expression for setting label visibility by scale

Good afternoon,

I am using QGIS 3.x and struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeareddisappear?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - label invisible when scaling smaller than 2000.

It doesn't work

UPDATE:

 

According to the answer below, I used the following expression:

  @map_scale<2000 AND FID = 12

and I see, that the label I wanted to disappear is displayed, whereas all others I want to keep are gone.

enter image description here

How can I turn it around?

QGIS 3x expression for setting label visibility by scale

Good afternoon,

I am struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeared?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - label invisible when scaling smaller than 2000.

It doesn't work

UPDATE:

According to the answer below, I used the following expression:

  @map_scale<2000 AND FID = 12

and I see, that the label I wanted to disappear is displayed, whereas all others I want to keep are gone.

enter image description here

How can I turn it around?

QGIS expression for setting label visibility by scale

I am using QGIS 3.x and struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappear?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - label invisible when scaling smaller than 2000.

It doesn't work

 

According to the answer below, I used the following expression:

  @map_scale<2000 AND FID = 12

and I see, that the label I wanted to disappear is displayed, whereas all others I want to keep are gone.

enter image description here

How can I turn it around?

Became Hot Network Question
image added
Source Link
Geographos
  • 3.8k
  • 4
  • 37
  • 111

Good afternoon,

I am struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeared?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - ayerlabel invisible when scalescaling smaller than 2000.

It doesn't work

UPDATE:

According to the answer below, I used the following expression:

  @map_scale<2000 AND FID = 12

and I see, that the label I wanted to disappear is displayed, whereas all others I want to keep are gone.

enter image description here

How can I turn it around?

Good afternoon,

I am struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeared?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - ayer invisible when scale smaller than 2000.

It doesn't work

Good afternoon,

I am struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeared?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - label invisible when scaling smaller than 2000.

It doesn't work

UPDATE:

According to the answer below, I used the following expression:

  @map_scale<2000 AND FID = 12

and I see, that the label I wanted to disappear is displayed, whereas all others I want to keep are gone.

enter image description here

How can I turn it around?

Source Link
Geographos
  • 3.8k
  • 4
  • 37
  • 111

QGIS 3x expression for setting label visibility by scale

Good afternoon,

I am struggling with the labels and I would like to have some expression for setting the visibility of some layers based by scale.

enter image description here

How can I make some of them disappeared?

I tried:

   if(@map_scale<2000) then ("fid" = 18) = NULL

where "fid" is my data attribute table column NULL - ayer invisible when scale smaller than 2000.

It doesn't work