Files
MapLibreParticleLab/metrics/integration/render-tests/debug/padding/set-padding/style.json
2023-03-25 14:46:49 +01:00

83 lines
1.5 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"showPadding": true,
"height": 256,
"operations": [
[
"setPadding",
{
"top": 20,
"left": 125,
"bottom": 10,
"right": 15
}
],
[
"wait"
]
]
}
},
"center": [ 0, 0 ],
"zoom": 8,
"pitch": 60,
"sources": {
"northward-road": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[ 0, -25],
[ 0, 25]
]
}
},{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[ -0.2, -25],
[ -0.2, 25]
]
}
},{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[ 0.2, -25],
[ 0.2, 25]
]
}
}
]
}
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "line",
"type": "line",
"source": "northward-road",
"layout": {},
"paint": {
"line-width": 10
}
}
]
}