Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.49 KB

File metadata and controls

49 lines (34 loc) · 1.49 KB

Maptoolkit Maps JS

License Version Downloads

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.

Installation

npm

npm install @maptoolkit/maps

CDN

<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.

Basic usage

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,
});

Documentation

API Key

Using the underlying geospatial services requires a valid API key. 🔑 Get your API key here.

License

Maptoolkit Maps JS is open-source under the BSD 3-Clause License.