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

78 lines
1.6 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "x",
"text-size": 20,
"text-justify": "auto",
"text-allow-overlap": true,
"text-variable-anchor": ["left", "right", "top", "bottom"],
"text-radial-offset": 0.7,
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
]
}
},
{
"id": "anchor",
"type": "circle",
"source": "point",
"paint" :{
"circle-radius": 2
}
}
]
}