MapTiler SDK JS

The easiest way for developers to integrate maps with their web applications and products is using our Maps SDK.

It comes with built-in map styles to pick from, showing detailed street-level information, 3d terrain, and satellite imagery for the entire world.

Your data can be displayed in many ways; from simple maps with markers, to dynamic heatmaps, and filtered visualizations of millions of features; all using WebGL technology in a browser.

Written in TypeScript and usable via NPM; it allows modern development of web mapping applications. It comes with hundreds of examples, it is open-source on GitHubLogoGitHub, and BSD licensed. Our Maps SDK extends MapLibre GL JS1 with functions related to the MapTiler mapping platform.

Explore our examples and API reference

Examples

Explore our code samples collection.

Explore the examples

SDK JS Reference

Read the SDK API Reference.

Read documentation

Get started integrating maps

Simply use the code below the map.

  1. Copy the following code, paste it into your favorite text editor, and save it as a .html file.

  2. Install the npm package.

  3. Include the CSS file.

    If you have a bundler that can handle CSS, you can import the CSS or include it with a <link> in the head of the document via the CDN

  4. Include the following code in your JavaScript file (Example: app.js).

  5. Replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

  6. The next is up to you. You can center your map wherever you desire (modifying the starting position) and set an appropriate zoom level (modifying the starting zoom) to match your users’ needs. Additionally, you can change the map’s look (by updating the source URL); choose from a range of visually appealing map styles from our extensive MapTiler standard maps, or create your own to truly differentiate your application.

Learn more

If you want to learn how to initialize a map and load the style, check out the Learn the basics - How to use the MapTiler SDK JS tutorial.

  1. MapLibre GL JS is a open-source web map library based on WebGL. 

An extension of MapLibre GL JS