Files
MapLibreParticleLab/metrics/integration/render-tests/icon-text-fit/both-collision/style.json
2023-03-25 14:46:49 +01:00

56 lines
1.1 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [
0,
-4
]
}
}
},
"sprite": "local://sprites/sprite",
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "symbol",
"type": "symbol",
"source": "geojson",
"layout": {
"text-field": "ABC",
"text-anchor": "top",
"text-offset": [0, 0.5],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"icon-image": "motorway_lg_6"
}
},
{
"id": "symbol_with_offset",
"type": "symbol",
"source": "geojson",
"layout": {
"text-field": "ABC",
"text-offset": [0, -1.5],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"icon-image": "motorway_lg_6",
"icon-text-fit": "both",
"icon-text-fit-padding": [0, 4, 0, 4]
}
}
]
}