Display and style rich text labels
Use the format expression to display country labels in both English and in the local language.
---
title: Display and style rich text labels
description: Use the format expression to display country labels in both English and in the local language.
options:
zoom: 4
center: [ 9.49, 49.01 ]
style:
extends: https://styles.trailsta.sh/maptiler-basic.json
layers:
- id: country_label
text-field:
- format
- [get, name_en]
- font-scale: 1.2
- "\n"
- {}
- [get, name]
- font-scale: 0.8
text-font:
- literal
- [Open Sans Italic]
---