Language playground

Switch between different map languages dynamically

View on GitHub
SDK 1.0.0-rc.7

Pick a language and every label on the map (countries, capitals, seas) re-renders in it, while the camera stays put.

  • setLanguage relabels the map already on screen, so switching costs no style reload and no second TomTomMap.
  • The constructor takes the same option, so the first paint is already in the chosen language.
  • Language is the closed list of every language the map labels carry, ngt (neutral ground truth) among them, so a wrong code fails to compile.

Related examples