Fix issue with mindistance labels containing no text (#4673)
Allow setting gamma at the layer level (#4763)