This is the documentation of version 1.0.0-rc.1. Go to the latest version, 1.0.0-rc.5.

Migrating from Maps SDK for Web V6

Maps SDK for Web V6 was deprecated on February 1, 2025, and its CDN endpoints were withdrawn on February 1, 2026. They answer 404 unless your contract runs past that date, and then only until it ends. V6 receives no further updates, security patches or bug fixes. The Maps SDK for JavaScript replaces it.

Migration carries no additional cost. Your API key, contract and per-call pricing stay the same (Pricing and commercial impact).


Why migrate

Benefit What it means for you
Map + services integration A route, a place search or a traffic query renders on the map in one call, through a map module, with no addSource/addLayer boilerplate.
Open rendering engine Built on MapLibre GL JS, open source and BSD-licensed, with its plugin ecosystem.
Orbis Maps Native support for TomTom's next-generation map data (Future-proof with Orbis Maps).
Smaller bundles ES modules with tree-shaking, so you ship only what you import. V6 shipped monolithic UMD files.
First-class TypeScript Complete type definitions ship with the package, so you don't install @types.
Cross-platform services The Services bundle runs in the browser, Node.js 24+ and React Native from one codebase.
Native GeoJSON Places, routes, reachable ranges, geometries and traffic come back as GeoJSON (the POI category and search-suggestion services return plain objects), ready for the map, deck.gl or your database.
Your brand on the map Restyle the map at runtime with styling knobs for label sizes, road widths and colours, apply your brand colours in one call, and derive a theme from your site's CSS or an image.
Built for AI A coding-agent skill for Claude Code, Cursor, Copilot and others, and the Agent Toolkit that lets your users talk to the map.

Feature comparison

Map display

Capability V6 New SDK Notes
Vector map rendering Yes Yes MapLibre-based
Map styles (Light, Dark, Driving, Mono, Satellite) Yes Yes Built-in themes
Custom style files or URLs Yes — Restyle a standard style at runtime with styling knobs and map colours
Style switching keeps your data — Yes V6's setStyle dropped added layers. SDK modules restore themselves
Map language Yes Yes map.setLanguage, or once for map and services in the global config
Geopolitical views Map tiles only Yes One setting covers the map and every service call
3D buildings Yes Yes The buildings3D layer group of the Base Map Module
Hillshade and 3D terrain — Yes New
Globe projection and sky — Yes New
Semantic styling (label sizes, road widths, traffic colours, presets) — Yes New: every setting is a knob with a stable id
Brand colours and the accent — Yes New: setMapColors, and exportStyle to save the result
Markers, popups, controls Yes Yes MapLibre API
Search results as map pins Manual Yes Places module: pins, clustering, entry points and connections
Built-in POI filtering and icons Show/hide only Yes POIs module: by category, with your own icons
Route display Manual Yes Routing module: alternatives, waypoints, sections, speed-limit signs
Reachable ranges on the map Manual Yes Reachable ranges module
GeoJSON layers / custom data Yes Yes Geometries and the Custom GeoJSON module, which keeps your layer specs across style changes
Bring-your-own-data (heatmaps, etc.) Manual Yes Example included
Click and hover on map features Manual Yes Module events with hover and click states
Orbis Maps support — Yes New map data
Layer group toggling — Yes Base map module
Style part lazy loading — Yes Faster initial load

Services

Capability V6 New SDK Notes
Calculate route (A→B, waypoints) Yes Yes GeoJSON response
Route alternatives Yes Yes
Route guidance (arrows) Yes Yes Example included
Route with live traffic Manual Yes Built-in module
Route reconstruction Yes Yes Interactive playground
Long Distance EV Routing Yes No Routes are planned without a vehicle consumption model
Reachable ranges Yes Yes Several origins and budgets in one call. It is in private preview, so your key needs access
EV Charging Availability Yes No Search returns EV stations with their connectors and charging points, without live status
Fuzzy, category and nearby search Yes Yes One discoverPlaces function; playground included
Geometry search / along-route search Yes Yes Same discoverPlaces function
Search suggestions Autocomplete Yes Places, brands and categories ranked together
Geocoding / reverse geocoding Yes Yes Web + Node.js
Place details Yes Yes Opening hours, entry points, related POIs
POI categories Yes Yes Match categories by name in any supported language
Geometry data (place boundaries) Yes Yes V6's additionalData
Traffic flow tiles Yes Yes Config playground
Traffic incidents Yes Yes Typed filters by magnitude, category and road
Traffic incident details Yes Yes Drawn on the map by the incident details module
Traffic area analytics — Yes New: historical speed and congestion over any area, drawn as a heatmap or 3D grid. Needs a Move Portal key
Server-side services (Node.js) Services only Yes Full support
React Native services — Yes New platform

Developer experience

Capability V6 New SDK Notes
TypeScript support Annotations only Full types No @types needed
Tree-shaking / ESM UMD bundles ESM Smaller bundles
Centralized config (singleton) — Yes Set once, use everywhere
Framework examples (React, Vue) Limited Yes In docs
CodeSandbox examples — Yes 110+ runnable examples
API reference docs Yes Yes Full TypeDoc
Per-call API key override Yes Yes Flexible key management
Keeping the API key off the page Manual Yes Proxy mode: your server adds the key
39 languages supported Yes Yes Global config
Settings as data — Yes Every module setting has an id: save, replay, or build a UI from the catalogue
AI coding-agent skill — Yes npx skills add for Claude Code, Cursor, Copilot and others
Open-source rendering engine Mapbox GL (proprietary) MapLibre (BSD) No license risk

Plugins

V6 plugin or capability New SDK
SearchBox No drop-in plugin yet. Build on getSearchSuggestions()
Zoom and pan controls MapLibre's NavigationControl, through map.mapLibreMap
Minimap, DrawingTools MapLibre community plugins
— Viewport places: search results that follow the visible map
— Map theme: the map's colours from your brand colours, your site's CSS, an image or a mood
— Map effects: bloom, depth of field, colour grade, tint, fog, vignette and your own GPU passes
— Fly-over: a camera that flies a route, framing the junctions ahead
— Landmarks 3D: detailed 3D meshes of landmark buildings, in private preview
— Agent Toolkit: LLM tools that search, route and restyle the map from a conversation

Estimating migration effort

Use the table below to estimate the effort from the V6 features you use.

What you use today Effort What to expect
Basic map display only Low Replace the map initialization (tt.map → TomTomMap). Update the CSS import. Typically under 1 day.
Map + markers + popups Low Markers use MapLibre's API, with a nearly identical pattern. Popups are the same concept. Expect a few hours of find-and-replace.
Map + routing display Low–Medium Route calculation returns GeoJSON natively, which is simpler than V6.
Map + traffic layers Low–Medium Traffic is integrated into the map module. Replace the stylesVisibility config with the new traffic module configuration.
Search / geocoding services Low Import from @tomtom-org/maps-sdk/services instead of tt.services. Fuzzy, category, nearby, geometry and along-route search become one discoverPlaces function; see the service mapping below. Responses are typed. Server-side Node.js code works with minimal changes.
EV routing / charging High Long-distance EV routing, vehicle consumption models and live charging availability have no equivalent. Search returns EV stations with their connectors and charging points.
Custom map styles (Map Styler) Medium The map loads standard styles only. Start from the closest one and restyle it in code with styling knobs and setMapColors.
SearchBox plugin Medium No drop-in SearchBox plugin yet. Build on getSearchSuggestions(), with the search playground as a starting point, or use a MapLibre geocoder plugin.
Minimap / DrawingTools plugins Medium No first-party equivalents yet. Use MapLibre community plugins.
Custom data visualization Low Your layer specs carry over unchanged. Use MapLibre's addSource/addLayer as before, or the Custom GeoJSON module, which keeps them across style switches and adds SDK events. GeoJSON heatmaps, clusters, and choropleth maps work out of the box.
CDN-only deployment (no bundler) Medium The new SDK requires npm and a bundler (Vite, Webpack). If your project has no build step, you need to add one, a one-time setup cost.

For most integrations using map display, routing and traffic, expect 2–4 developer-days of migration work, with the 110+ runnable examples to check each feature against.


V6 API to new SDK

Find each V6 call you use and its replacement. Services come from @tomtom-org/maps-sdk/services and map classes from @tomtom-org/maps-sdk/map. None of them takes a key, because the global configuration holds it.

Map

V6 New SDK
tt.map({ key, container, center, zoom }) new TomTomMap({ mapLibre: { container, center, zoom } }) (TomTom map)
map.setStyle(style) await map.setStyle('streetDark'). Modules keep their data and settings (Map styles)
stylesVisibility, showTrafficFlow(), hideTrafficFlow() (await TrafficFlowModule.get(map)).setVisible(true) (Traffic flow)
showTrafficIncidents(), hideTrafficIncidents() (await TrafficIncidentsModule.get(map)).setVisible(true) (Traffic incidents)
showPOI(), hidePOI() (await POIsModule.get(map)).setVisible(false) (POIs)
map.setLanguage(language) map.setLanguage(language), or language in the global configuration for the map and services
map.setGeopoliticalView(view), tiles only map.setGeopoliticalView(view), or geopoliticalView in the global configuration for the map and services (Geopolitical views)
tt.Marker, tt.Popup Marker, Popup from maplibre-gl, or the Places module for many pins
map.addLayer(…) with a route's toGeoJson() await (await RoutingModule.create(map)).showRoutes(routes) (Routes)
map.addLayer(…) with your own GeoJSON the Geometries or Custom GeoJSON module, or map.mapLibreMap.addLayer(…)

Services

V6 tt.services.… New SDK
fuzzySearch, poiSearch, categorySearch, nearbySearch discoverPlaces, or discoverOnePlace for the best match
geometrySearch discoverPlaces({ geometries }) (Geometry search)
alongRouteSearch discoverPlaces({ route, maxDetourTimeSeconds }) (Along-route search)
autocomplete getSearchSuggestions
geocode geocode, or geocodeOne for the best match
reverseGeocode reverseGeocode
placeById getPlaceDetails
poiCategories getPOICategories
additionalData geometryData
calculateRoute calculateRoute
calculateReachableRange calculateReachableRange, or calculateReachableRanges for several
incidentDetails, incidentDetailsV5 trafficIncidentDetails
matrixRouting, structuredGeocode, crossStreetLookup, staticImage, trafficFlowSegmentData, incidentViewport, longDistanceEVRouting, evChargingStationsAvailability No equivalent yet. See What's not yet available below

Responses are GeoJSON as returned, so there is no toGeoJson(). Positions are [longitude, latitude] arrays throughout.


Step-by-step migration

Migrate incrementally, following only the sections your integration needs. The SDK works at two levels, which you can mix:

Install the new SDK

Remove the legacy packages and CDN references, then install the new SDK:

# Remove legacy packages
npm uninstall @tomtom-international/web-sdk-maps @tomtom-international/web-sdk-services

# Install new SDK (peer dependencies installed automatically)
npm install @tomtom-org/maps-sdk

Also remove any V6 CDN <script> and <link> tags from your HTML. Your existing API key works with the new SDK.

Set up centralized configuration

The new SDK uses a singleton configuration pattern. Set your API key once at startup, and it applies to all maps and service calls.

Before (V6):

// API key passed to every call individually
var map = tt.map({ key: 'YOUR_API_KEY', container: 'map' });
tt.services.fuzzySearch({ key: 'YOUR_API_KEY', query: 'pizza' });

After:

import { TomTomConfig } from '@tomtom-org/maps-sdk/core';

// Set once at app startup — used by all maps and service calls
TomTomConfig.instance.put({
    apiKey: 'YOUR_API_KEY',
    language: 'en-GB',
});

You can still override the key per call or per map.

Migrate map initialization

Before (V6):

var map = tt.map({
    key: 'YOUR_API_KEY',
    container: 'map',
    center: [4.8156, 52.4414],
    zoom: 8,
});

After:

import { TomTomMap } from '@tomtom-org/maps-sdk/map';

const map = new TomTomMap({
    mapLibre: {
        container: 'map',
        center: [4.8156, 52.4414],
        zoom: 8,
    },
});

Map options (center, zoom, bearing, pitch, and all other MapLibre options) pass through unchanged under the mapLibre key.

Available styles:

V6 style name New SDK style ID
basic_main / basic_night, 2/basic_street-light / 2/basic_street-dark streetLight / streetDark
driving_main / driving_night streetLightDriving / streetDarkDriving
hybrid_main, or labels_main over your own imagery streetSatellite, which carries imagery, roads and labels in one style
— monoLight / monoDark, muted backdrops for your own data

V6's separate trafficFlow, trafficIncidents and poi styles have no names of their own. You load the traffic parts with include (see Migrate traffic layers), and show, hide and filter the style's own POIs with the POIs module.

const map = new TomTomMap({
    style: 'streetDark',
    mapLibre: { container: 'map' },
});

To switch style at runtime, call await map.setStyle('streetLight'). In V6, setStyle dropped every layer you had added. The SDK's modules keep their data and settings and redraw on the new style (Map styles).

Migrate routing

Before (V6):

tt.services.calculateRoute({
    key: 'YOUR_API_KEY',
    locations: '4.89,52.37:4.88,52.36',
}).then(function(routeData) {
    var geojson = routeData.toGeoJson();
    map.addLayer({ /* ... */ });
});

After:

import { calculateRoute } from '@tomtom-org/maps-sdk/services';
import { RoutingModule } from '@tomtom-org/maps-sdk/map';

const routes = await calculateRoute({
    locations: [
        [4.89, 52.37],   // [longitude, latitude]
        [4.88, 52.36],
    ],
    travelMode: 'car',
});

// Pass directly to RoutingModule — no .toGeoJson() or manual layer setup needed
const routingModule = await RoutingModule.create(map);
await routingModule.showRoutes(routes);

The response is standard GeoJSON, with no .toGeoJson() conversion step. RoutingModule handles the layers, default styling, waypoint icons and traffic-section colouring, so the route renders with a single call and looks production-ready by default. The module has configuration options for a different colour scheme, custom line widths or your own waypoint markers.

To manage the map layers yourself, closer to how V6 worked, pass the GeoJSON response directly to map.mapLibreMap.addSource / addLayer:

// Low-level approach — use the MapLibre instance directly
map.mapLibreMap.addSource('route', { type: 'geojson', data: routes });
map.mapLibreMap.addLayer({ id: 'route-line', type: 'line', source: 'route', paint: { 'line-color': '#0080ff', 'line-width': 4 } });

Layers added this way are dropped by setStyle and get no SDK events. To keep your own layer specs with both, give them to the Custom GeoJSON module instead.

Migrate search and geocoding

Search and geocoding responses are standard GeoJSON, so you can pass them directly to the map. PlacesModule renders search results on the map as styled, interactive markers with minimal setup. For a data-only integration, the GeoJSON features work equally well with any MapLibre data source.

Before (V6):

tt.services.fuzzySearch({
    key: 'YOUR_API_KEY',
    query: 'restaurant',
    center: { lat: 52.37, lng: 4.89 },
}).then(function(results) { /* ... */ });

After:

import { discoverPlaces } from '@tomtom-org/maps-sdk/services';

const results = await discoverPlaces({
    query: 'restaurant',
    geoBias: { position: [4.89, 52.37] }, // [longitude, latitude]
});
// results is a typed GeoJSON FeatureCollection — access via results.features

For reverse geocoding:

Before (V6):

tt.services.reverseGeocode({
    key: 'YOUR_API_KEY',
    position: { lat: 52.37, lng: 4.89 },
}).then(response => { /* ... */ });

After:

import { reverseGeocode } from '@tomtom-org/maps-sdk/services';

const place = await reverseGeocode({ position: [4.89, 52.37] });
const address = place.properties.address;

Migrate traffic layers

TrafficFlowModule and TrafficIncidentsModule connect live TomTom traffic data to the map with pre-styled, interactive layers. Incident markers are clickable and richly styled out of the box. You can filter them by magnitude, category or road type without writing any rendering logic, and customise the modules if you need a different look.

Before (V6):

var map = tt.map({
    key: 'YOUR_API_KEY',
    container: 'map',
    stylesVisibility: { trafficFlow: true, trafficIncidents: true },
});
// Toggle later:
map.showTrafficFlow();
map.hideTrafficFlow();

After:

import { TomTomMap, TrafficFlowModule, TrafficIncidentsModule } from '@tomtom-org/maps-sdk/map';

// Include traffic layers when initializing the map style
const map = new TomTomMap({
    style: { type: 'standard', id: 'streetLight', include: ['trafficFlow', 'trafficIncidents'] },
    mapLibre: { container: 'map' },
});

const trafficFlow = await TrafficFlowModule.get(map, { visible: true });
const trafficIncidents = await TrafficIncidentsModule.get(map, { visible: true });

// Toggle visibility
trafficFlow.setVisible(false);
trafficIncidents.setVisible(true);

// Typed filtering — show only major and moderate incidents
trafficIncidents.updateConfig({
    filters: { magnitudes: { show: 'only', values: ['major', 'moderate'] } },
});

Migrate custom styling

In V6, you restyled the map by editing a style in Map Styler and loading its JSON. The new SDK loads standard styles only. Instead, the Styling Foundations module changes a style at runtime, and the change survives style switches.

import { setKnob, StylingFoundationsModule, stylingFoundationsKnobCatalogue } from '@tomtom-org/maps-sdk/map';

const styling = await StylingFoundationsModule.get(map);
setKnob(styling, stylingFoundationsKnobCatalogue, 'labels.sizeFactor', 1.2); // every base-map label 20% bigger
setKnob(styling, stylingFoundationsKnobCatalogue, 'roads.widthFactor', 0.8);  // thinner roads, hierarchy kept
styling.setMapColors({ land: '#f3f5f7', water: '#accbe2', roadMajor: '#a1b8ce' });

The map theme plugin derives those colours for you from your brand colours, your site's CSS or an image. exportStyle saves the result as a style file.

Update CSS

Before (V6):

<link rel='stylesheet' href='https://api.tomtom.com/maps-sdk-for-web/cdn/6.x/.../maps.css'>

After:

The SDK applies the MapLibre CSS itself, from its own bundle. You only need this import to use the CSS of the MapLibre version you installed.

// In your JS/TS entry point
import 'maplibre-gl/dist/maplibre-gl.css';

Performance improvements

Bundle size

With modular ESM, you only ship the code you use. With tree-shaking enabled:

Component V6 (min + gzip) New SDK
Maps library ~720 KB monolithic ~220 KB MapLibre + SDK modules (tree-shaken)
Services library ~175 KB monolithic Import only what you use (significantly smaller)
Total (maps + routing) ~895 KB Substantially reduced

Rendering engine

API response handling


Future-proof with Orbis Maps

The new SDK is the first to support TomTom Orbis Maps natively. Orbis Maps is the next-generation map data platform that combines open data (OpenStreetMap) with TomTom's proprietary data.

What Orbis Maps delivers Details
Fresher data Community-contributed open data combined with TomTom's own map-making operations for faster update cycles
Richer detail More granular POI data, improved address precision, and better coverage in emerging markets
Same APIs, better data Orbis Maps work with the same Routing, Search, and Traffic APIs you already use. The data quality improves, and your code stays the same
Forward investment TomTom's roadmap is centred on Orbis. New features, coverage improvements, and data quality investments will land on Orbis first

After migrating, your application gets every Orbis Maps improvement automatically.


Pricing and commercial impact


Using TomTom map with MapLibre directly

TomTomMap exposes the underlying MapLibre GL JS instance as map.mapLibreMap. Through it, the full MapLibre API (addSource, addLayer, on, queryRenderedFeatures and everything else) works exactly as in a standalone MapLibre project.

This is the most direct migration path for V6 code that calls TomTom's tt.map methods directly. Replace tt.map(...) with new TomTomMap(...), swap the CSS import, and then migrate the rest of the codebase incrementally. Each time a feature is ready for a high-level module, replace its manual layer code. Everything else keeps working unchanged through map.mapLibreMap.

import { TomTomMap } from '@tomtom-org/maps-sdk/map';

const map = new TomTomMap({ mapLibre: { container: 'map' } });

map.mapLibreMap.on('load', () => {
    // Standard MapLibre API
    map.mapLibreMap.addSource('my-data', { type: 'geojson', data: myGeojson });
    map.mapLibreMap.addLayer({ id: 'my-layer', type: 'fill', source: 'my-data' });
});

Custom data visualisation, such as heatmaps, clustering, choropleth maps and deck.gl layers, works through map.mapLibreMap without any SDK-specific code. You can use the high-level modules and the raw MapLibre API on the same map instance at once. For GeoJSON layers, the Custom GeoJSON module takes the same layer specs and restores them after every style switch.


What's not yet available

The new SDK is in Public Preview (0.x versions). Until 1.0, a minor release can carry a breaking change, and Upgrading to 1.0 lists each one. Some V6 capabilities are not yet available as first-party SDK features:

For GeoJSON data that no first-party module covers, use the Custom GeoJSON module. For anything else, map.mapLibreMap is the full MapLibre GL JS API.


Further reading