Files
MapLibreParticleLab/metrics/integration/query-tests/line-offset/property-function/style.json
2023-03-25 14:46:49 +01:00

67 lines
1.3 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"queryGeometry": [
17,
32
]
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": { "offset": 0 },
"geometry": {
"type": "Polygon",
"coordinates": [
[
[10, 10],
[10, -10],
[-10, -10],
[-10, 10],
[10,10]
]
]
}
}, {
"type": "Feature",
"properties": { "offset": 10 },
"geometry": {
"type": "Polygon",
"coordinates": [
[
[10, 10],
[10, -10],
[-10, -10],
[-10, 10],
[10, 10]
]
]
}
}
]
}
}
},
"layers": [
{
"id": "geojson",
"type": "line",
"source": "geojson",
"paint": {
"line-offset": { "property": "offset", "type": "identity" },
"line-width": 3
},
"interactive": true
}
]
}