Outdoor Cartography Textual Labeling in Studio

No items found.

Jan 14, 2021

Outdoor Cartography Textual Labeling in Studio

Guest

No items found.

Guest

Jan 14, 2021

The textual aspect of the label is critical for map legibility, and can be customized in Studio to drive better engagement. Open the Natural Label Layer and style as a “Symbol”. (In this case I filtered the layer)

In the style panel I uploaded and added an icon (a thin white line SVG) using this updated Studio tutorial.Select “Text” from the style panel and in the text field box choose the “Name” field.

The magic happens in the “position” panel using the“Text offset” control, which controls the position of text label by entering an x and y value. PLEASE also note further down the panel is an “icon offset” control to position the icons.

Adding a prefix, suffix or some contextual data-driven text

To  enhance labels include a data driven field from the layer or some contextual text or data from custom data uploaded to Mapbox. Duplicate the layer created and use the “elevation_ft” field for the source of the text. Using the coalesce function in the Text field formula box we add a prefix, see the screenshot below where I have added the letter “M” for metres.

The options are almost endless. Below is an example where data-driven text is enclosed within a contextual sentence.

And of course colour the text on a data-driven value. This text can then be positioned using the “Offset text” technique covered above. Combining text and icons into labels adds value to geographic layers, be them points, lines or fills. And of course they look amazing using 3D Terrain!

Have fun experimenting with labels and let me know what you create!

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

No items found.
No items found.