How to add a custom icon (PNG) to a point layer
This example shows how to make a map with pins to display a point layer from a MapTiler Cloud Tileset using a custom PNG icon.
Download the underground sample icon, The icon is from the Maps Icons Collection.
Replace YOUR_MAPTILER_API_KEY_HERE
with your actual MapTiler API key.
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.
Related examples
An extension of MapLibre GL JS