Files
MapLibreParticleLab/metrics/integration/render-tests/text-variable-anchor/icon-image/style.json
2023-03-25 14:46:49 +01:00

66 lines
1.3 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"image": "bank-12"
},
"geometry": {
"type": "Point",
"coordinates": [
0,
-10
]
}
},
{
"type": "Feature",
"properties": {
"image": "bakery-12"
},
"geometry": {
"type": "Point",
"coordinates": [
0,
10
]
}
}
]
}
}
},
"sprite": "local://sprites/sprite",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "geojson",
"layout": {
"icon-image": ["get", "image"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-justify": "auto",
"text-variable-anchor" : ["top-left", "bottom-right"],
"text-radial-offset": 0.5,
"text-field": ["get", "image"]
}
}
]
}