Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 2
    Keep in mind, that it might be confusing for the user of the map, when polygons of the same feature class are labeled in different ways and additionally only some of them appear in an attribute table. Commented Jan 15, 2017 at 13:03
  • I'm thinking of a county map of GB
    – Ian Turton
    Commented Jan 15, 2017 at 13:04
  • What about dynamically changing the font to fit? You could take the longest of the features dimensions, divide by how many characters in the label string, and either do some math with the scale or just use that to alter your already set font size... Alternatively you could use that measure (longest feature dimension / len of string) and if it's too long label with the id.
    – user52245
    Commented Jan 15, 2017 at 17:01
  • mostly I'm concerned with readability so I don't want to mess with the font size
    – Ian Turton
    Commented Jan 15, 2017 at 17:09
  • 1
    You could use a Python custom expression taking the label, font size, and scale and returning true or false if it will fit. Then in expression engine use an if clause to switch labels. I'll work up an answer for you later with examples.
    – user52245
    Commented Jan 15, 2017 at 18:48