138 lines
2.7 KiB
JSON
138 lines
2.7 KiB
JSON
{
|
|
"version": 8,
|
|
"metadata": {
|
|
"test": {
|
|
"height": 256,
|
|
"operations": [
|
|
[
|
|
"addCustomLayer",
|
|
"tent-3d"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"sources": {
|
|
"geojson": {
|
|
"type": "geojson",
|
|
"data": {
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"properties": {
|
|
"property": 30
|
|
},
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-1,
|
|
-1
|
|
],
|
|
[
|
|
-1,
|
|
1
|
|
],
|
|
[
|
|
1,
|
|
1
|
|
],
|
|
[
|
|
1,
|
|
-1
|
|
],
|
|
[
|
|
-1,
|
|
-1
|
|
]
|
|
]
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "Feature",
|
|
"properties": {
|
|
"property": 20
|
|
},
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-2,
|
|
-2
|
|
],
|
|
[
|
|
-2,
|
|
2
|
|
],
|
|
[
|
|
2,
|
|
2
|
|
],
|
|
[
|
|
2,
|
|
-2
|
|
],
|
|
[
|
|
-2,
|
|
-2
|
|
]
|
|
]
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "Feature",
|
|
"properties": {
|
|
"property": 10
|
|
},
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-3,
|
|
-3
|
|
],
|
|
[
|
|
-3,
|
|
3
|
|
],
|
|
[
|
|
3,
|
|
3
|
|
],
|
|
[
|
|
3,
|
|
-3
|
|
],
|
|
[
|
|
-3,
|
|
-3
|
|
]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"pitch": 60,
|
|
"zoom": 4,
|
|
"bearing": -35,
|
|
"layers": [
|
|
{
|
|
"id": "extrusion",
|
|
"type": "fill-extrusion",
|
|
"source": "geojson",
|
|
"paint": {
|
|
"fill-extrusion-height": 200000,
|
|
"fill-extrusion-color": "blue"
|
|
}
|
|
}
|
|
]
|
|
}
|