Files
MapLibreParticleLab/metrics/integration/query-tests/fill-extrusion/sort/style.json
2023-03-25 14:46:49 +01:00

142 lines
2.4 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"debug": true,
"width": 200,
"height": 400,
"queryGeometry": [
156,
131
]
}
},
"pitch": 60,
"center": [
-79.46462631225589,
43.64750394449096
],
"zoom": 13,
"sources": {
"zones": {
"type": "geojson",
"maxzoom": 13,
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"position": "middle"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-79.46462631225589,
43.64750394449096
],
[
-79.45793151855469,
43.64750394449096
],
[
-79.45793151855469,
43.6545837335548
],
[
-79.46462631225589,
43.6545837335548
],
[
-79.46462631225589,
43.64750394449096
]
]
]
}
},
{
"type": "Feature",
"properties": {
"position": "bottom"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-79.46205139160156,
43.635329724674484
],
[
-79.45569992065428,
43.635329724674484
],
[
-79.45569992065428,
43.642535173141056
],
[
-79.46205139160156,
43.642535173141056
],
[
-79.46205139160156,
43.635329724674484
]
]
]
}
},
{
"type": "Feature",
"properties": {
"position": "top"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-79.46788787841795,
43.65557732137429
],
[
-79.45700806884764,
43.65557732137429
],
[
-79.45700806884764,
43.66290452383666
],
[
-79.46788787841795,
43.66290452383666
],
[
-79.46788787841795,
43.65557732137429
]
]
]
}
}
]
}
}
},
"layers": [
{
"id": "zones",
"type": "fill-extrusion",
"source": "zones",
"paint": {
"fill-extrusion-color": "#ccc",
"fill-extrusion-height": 1000
}
}
]
}