Files
MapLibreParticleLab/metrics/integration/render-tests/within/paint-line/style.json
2023-03-25 14:46:49 +01:00

199 lines
4.5 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 125,
"height": 125
}
},
"zoom": 2,
"center": [
-24,
-32
],
"sources": {
"line": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-30.805664062500004,
-31.84023266790935
],
[
-20.56640625,
-32.026706293336126
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
-30.629882812499996,
-28.420391085674304
],
[
-18.544921875,
-28.92163128242129
],
[
-18.369140624999996,
-36.49197347059368
],
[
-27.24609375,
-36.77409249464194
]
]
}
}
]
}
},
"polygon": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-31.9921875,
-27.137368359795584
],
[
-32.255859375,
-35.49645605658415
],
[
-22.9833984375,
-35.7465122599185
],
[
-22.5,
-30.67571540416773
],
[
-29.003906249999996,
-30.29701788337204
],
[
-28.9599609375,
-37.64903402157864
],
[
-16.1279296875,
-37.89219554724435
],
[
-16.5673828125,
-26.82407078047018
],
[
-31.9921875,
-27.137368359795584
]
]
]
}
}
]
}
}
},
"layers": [
{
"id": "border",
"type": "fill",
"source": "polygon",
"paint": {
"fill-color": "black",
"fill-opacity": 0.5
}
},
{
"id": "draw",
"type": "line",
"source": "line",
"paint": {
"line-color": [
"case",
[
"within",
{
"type": "Polygon",
"coordinates": [
[
[
-31.9921875,
-27.137368359795584
],
[
-32.255859375,
-35.49645605658415
],
[
-22.9833984375,
-35.7465122599185
],
[
-22.5,
-30.67571540416773
],
[
-29.003906249999996,
-30.29701788337204
],
[
-28.9599609375,
-37.64903402157864
],
[
-16.1279296875,
-37.89219554724435
],
[
-16.5673828125,
-26.82407078047018
],
[
-31.9921875,
-27.137368359795584
]
]
]
}
],
"red",
"blue"
]
}
},
{
"id": "circle",
"type": "circle",
"source": "line",
"paint": {
"circle-color": "yellow",
"circle-radius": 2
}
}
]
}