npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mapconductor/react-for-tomtom

v0.2.1

Published

TomTom Orbis provider for MapConductor React SDK

Readme

@mapconductor/react-for-tomtom

TomTom Orbis provider for the MapConductor React SDK. Renders a TomTom map through MapConductor's provider-independent camera, marker, and overlay API, so the same application code can also run on Google Maps, MapLibre, Mapbox, MapTiler, Leaflet, OpenLayers, ArcGIS, Cesium, or HERE.

Installation

npm install @mapconductor/react-for-tomtom @mapconductor/js-sdk-core @mapconductor/js-sdk-react

@tomtom-org/maps-sdk is bundled as a dependency and does the actual rendering.

About the MapLibre version

This package pins maplibre-gl to 5.x, while the other MapLibre-based providers (react-for-maplibre, react-for-maptiler) are on 6.x. That is deliberate: @tomtom-org/maps-sdk depends on maplibre-gl@^5.24.0, and raising it would install two copies of MapLibre and hand the TomTom SDK a map object it was not built against. If you use TomTom alongside MapLibre or MapTiler in one app, expect two MapLibre versions in the bundle until the TomTom SDK moves to 6.

API key

TomTom tiles require an API key from the TomTom Developer Portal. Pass it to the view state:

// Your own key. Read it from your environment however your build tool does
// it, and keep it out of source control.
const TOMTOM_API_KEY = '…';

const state = useTomTomViewState({
  apiKey: TOMTOM_API_KEY,
  mapDesignType: TomTomDesign.Standard,
  cameraPosition,
});

Without a key the map surface mounts but no tiles arrive.

Usage

import {
  TomTomDesign,
  TomTomMapView2D,
  useTomTomViewState,
} from '@mapconductor/react-for-tomtom';
import { createGeoPoint, createMapCameraPosition } from '@mapconductor/js-sdk-core';

// Your own key. Read it from your environment however your build tool does
// it, and keep it out of source control.
const TOMTOM_API_KEY = '…';

const TOKYO = createGeoPoint({ latitude: 35.6812, longitude: 139.7671 });
const INITIAL_CAMERA = createMapCameraPosition({ position: TOKYO, zoom: 14 });

export default function App() {
  const state = useTomTomViewState({
    apiKey: TOMTOM_API_KEY,
    mapDesignType: TomTomDesign.Standard,
    cameraPosition: INITIAL_CAMERA,
  });

  return (
    <div style={{ width: '100vw', height: '100vh' }}>
      <TomTomMapView2D state={state} />
    </div>
  );
}

Available designs

TomTomDesign mirrors the TomTom Orbis style set:

| | | | --- | --- | | Standard | StandardLight, StandardDark | | Driving | DrivingLight, DrivingDark | | MonoLight | MonoDark | | Satellite | |

Standard and Driving follow the light variant; pick the explicit …Light / …Dark members when you want to control it yourself.

Server-side rendering

Import the provider lazily on the client. A static top-level import pulls the TomTom SDK — a browser library — into a server render:

const TomTomMap = lazy(() => import('./TomTomMap'));

Note that this package cannot be loaded by Node's own resolver at all — neither import nor require(). It reads maplibre-gl/package.json, and Node will only load a JSON module with an import attribute. Bundlers (Vite, webpack, Next.js) resolve it correctly, which is the supported way to use it.

License

Apache-2.0