On this page

    How to add a custom icon (SVG) to a point layer

    This example illustrates how to make a map with pins to display a point layer from a MapTiler Tileset using a custom SVG icon.

    
    

    Replace YOUR_MAPTILER_API_KEY_HERE with your own API key. Make sure to protect the key before you publish it!

    Replace YOUR_MAPTILER_TILESET_ID_HERE with your actual MapTiler Tileset ID.

    Replace YOUR_TILESET_LAYER_HERE with your actual Layer ID. How to get the Layer ID.

    An extension of MapLibre GL JS

    Was this helpful?

    SDK JS
    Examples
    How to add a custom icon (SVG) to a point layer
    Add custom icon (SVG) to a point layer