Maps JS is the Maptoolkit JavaScript library for embedding interactive maps in web applications. It is built on top of MapLibre GL JS and extends it with Maptoolkit-specific controls, styles, and services. Ships with built-in TypeScript types.
npm
npm install @maptoolkit/mapsCDN
<link rel="stylesheet" href="https://static.maptoolkit.net/mtk/v11/maps.css" />
<script src="https://static.maptoolkit.net/mtk/v11/maps.js"></script>The v11 path always resolves to the latest 11.x.x release.
import { Map } from "@maptoolkit/maps";
import "@maptoolkit/maps/css";
const map = new Map({
container: "map",
apiKey: "your-api-key",
center: [16.37, 48.21],
zoom: 12,
});Using the underlying geospatial services requires a valid API key. 🔑 Get your API key here.
Maptoolkit Maps JS is open-source under the BSD 3-Clause License.