Default map

Display a default map

View on GitHub
SDK 1.0.0-rc.7

A div, an API key and one constructor give you a full vector map of the Netherlands, from coastline to city labels.

  • TomTomConfig.instance.put holds the API key and the display language for the whole app, so nothing else in the code carries credentials.
  • TomTomMap picks the default TomTom style, loads its tiles and attaches to the container. There is no style URL to build and no source or layer to declare.
  • Its mapLibre block passes through to MapLibre GL JS unchanged, so anything that map accepts is available here.

Related examples