The dropdown is built from the SDK’s own list of style ids, and picking one repaints the map in place, at the same centre and zoom.
standardStyleIDsenumerates the styles the installed SDK ships, so the options never drift from the package, andStandardStyleIDtypes the value so an id the SDK does not ship fails to compile.setStyleis the whole switch. It is one call on the liveTomTomMap, with no second map and no teardown.
Related examples
Hillshade map
Display a hillshade map
Getting Started
Map Style
Terrain and 3D
Web
Reset state when changing style
Switch styles, and choose whether the SDK module state comes along (resetState)
Getting Started
Map Style
Routing
Web
Themed map
Open the map in your own colours and typeface: a warm Lisbon palette from the very first frame, with no flash of the default style, and every label in Fraunces
Getting Started
Map Style
Web
3D terrain map
Render the map surface in 3D using terrain elevation data
Getting Started
Terrain and 3D
Plugins
Web