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

136 lines
2.8 KiB
JSON

{
"version": 8,
"metadata": {
"test": {
"height": 256
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"property": 10
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-0.0003,
-0.0003
],
[
-0.0003,
0.0003
],
[
0.0003,
0.0003
],
[
0.0003,
-0.0003
],
[
-0.0003,
-0.0003
]
]
]
}
},
{
"type": "Feature",
"properties": {
"property": 20
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-0.0002,
0
],
[
0,
0.0002
],
[
0.0002,
0
],
[
0,
-0.0002
],
[
-0.0002,
0
]
]
]
}
},
{
"type": "Feature",
"properties": {
"property": 30
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-0.0001,
-0.0001
],
[
-0.0001,
0.0001
],
[
0.0001,
0.0001
],
[
0.0001,
-0.0001
],
[
-0.0001,
-0.0001
]
]
]
}
}
]
}
}
},
"pitch": 60,
"zoom": 18,
"layers": [
{
"id": "extrusion",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-height": {
"stops": [
[17, 10],
[19, 100]
],
"type": "exponential"
}
}
}
]
}