Pick a language and every label on the map (countries, capitals, seas) re-renders in it, while the camera stays put.
setLanguagerelabels the map already on screen, so switching costs no style reload and no secondTomTomMap.- The constructor takes the same option, so the first paint is already in the chosen language.
Languageis 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
Default map
Display a default map
Getting Started
Base Map
Web
Interactive map labels
Click country, city and neighborhood labels on the map to show their boundaries
Getting Started
Base Map
Geometry
User Interaction Events
Web
Interactive Map POIs
Click on map POIs to see their details
Getting Started
Base Map
Places and POIs
User Interaction Events
Web
Interactive roads and numbers
Base Map with interactive roads and house numbers.
Getting Started
Base Map
Search and Geocoding
User Interaction Events
Web