Map Style Switcher

Switch between different standard map styles

View on GitHub
SDK 1.0.0-rc.7

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.

  • standardStyleIDs enumerates the styles the installed SDK ships, so the options never drift from the package, and StandardStyleID types the value so an id the SDK does not ship fails to compile.
  • setStyle is the whole switch. It is one call on the live TomTomMap, with no second map and no teardown.

Related examples