Add an icon to the map
Add an icon to the map from an external URL and use it in a symbol layer.
---
title: Add an icon to the map
description: Add an icon to the map from an external URL and use it in a symbol layer.
type: geojson
options:
zoom: 1
style:
layers:
- type: symbol
icon-image: https://upload.wikimedia.org/wikipedia/commons/7/7c/201408_cat.png
icon-size: 0.25
extends: https://styles.trailsta.sh/osm-liberty.json
---
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"coordinates": [0, 0],
"type": "Point"
}
}
]
}