How to display a layers in MapTiler SDK JS

This example shows how to use layers within a MapTiler SDK JS map. The purpose of this demonstration is to exhibit the inclusion of a GeoJSON layer and a arc layer on top of your MapTiler maps. Simply use the code below the map.

In this case, renders within the WebGL context of the underlying base map. This advantageous approach enables occlusion between the layers and the labels and/or 3D features of the base map.

Replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

Learn more

Check out the documentation Base Maps Renderers to learn about the two types of integration between and a base map renderer.

Related examples