1

I was wondering if I could create an expression for a layer style that can "detect" the "composer mode" so that it can behave differently when the map is printed (like label priority handling).

1

Yes - the @map_id expression variable will be either set to the name of the composer map item in which the rendering is occuring or "canvas" if the rendering is occurring inside the main map canvas.

So you can write an expression like

case when @map_id='canvas' then 5 else 1 end
  • nice ! I will give it a try and check the answer ! – quazardous Feb 10 '17 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.