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 GitHub, and BSD licensed. Our Maps SDK extends MapLibre GL JS1 with functions related to the MapTiler mapping platform.
Explore our examples and API reference
Get started integrating maps
Simply use the code below the map.
-
Copy the following code, paste it into your favorite text editor, and save it as a
.html
file. -
Install the npm package.
-
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 -
Include the following code in your JavaScript file (Example: app.js).
-
Replace
YOUR_MAPTILER_API_KEY_HERE
with your actual MapTiler API key. -
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 thestarting zoom
) to match your users’ needs. Additionally, you can change the map’s look (by updating thesource 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.
View complete source code on GitHub
-
MapLibre GL JS is a open-source web map library based on WebGL. ↩