Back to all examples
Default map
Display a default map
A div, an API key and one constructor give you a full vector map of the Netherlands, from coastline to city labels.
TomTomConfig.instance.putholds the API key and the display language for the whole app, so nothing else in the code carries credentials.TomTomMappicks 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
mapLibreblock passes through to MapLibre GL JS unchanged, so anything that map accepts is available here.
Related examples
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
Mixed User Interaction Events
Handle various map events and user interactions
Getting Started
Base Map
User Interaction Events
Web