Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
129 lines
2.6 KiB
JSON
129 lines
2.6 KiB
JSON
{
|
|
"version": 8,
|
|
"metadata": {
|
|
"test": {
|
|
"width": 128,
|
|
"height": 64
|
|
}
|
|
},
|
|
"sources": {
|
|
"geojson": {
|
|
"type": "geojson",
|
|
"data": {
|
|
"type": "FeatureCollection",
|
|
"features": [{
|
|
"type": "Feature",
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
20,
|
|
-10
|
|
],
|
|
[
|
|
20,
|
|
10
|
|
],
|
|
[
|
|
40,
|
|
10
|
|
],
|
|
[
|
|
40,
|
|
-10
|
|
],
|
|
[
|
|
20,
|
|
-10
|
|
]
|
|
]
|
|
]
|
|
},
|
|
"properties": {
|
|
"class": "grass"
|
|
}
|
|
}, {
|
|
"type": "Feature",
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-10,
|
|
-10
|
|
],
|
|
[
|
|
-10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
-10
|
|
],
|
|
[
|
|
-10,
|
|
-10
|
|
]
|
|
]
|
|
]
|
|
},
|
|
"properties": {
|
|
"class": "trees"
|
|
}
|
|
}, {
|
|
"type": "Feature",
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-40,
|
|
-10
|
|
],
|
|
[
|
|
-40,
|
|
10
|
|
],
|
|
[
|
|
-20,
|
|
10
|
|
],
|
|
[
|
|
-20,
|
|
-10
|
|
],
|
|
[
|
|
-40,
|
|
-10
|
|
]
|
|
]
|
|
]
|
|
},
|
|
"properties": {
|
|
"class": "grass"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
|
|
|
|
}
|
|
},
|
|
"sprite": "local://sprites/emerald",
|
|
"layers": [{
|
|
"id": "fill",
|
|
"type": "fill",
|
|
"source": "geojson",
|
|
"paint": {
|
|
"fill-antialias": false,
|
|
"fill-pattern": ["case", ["==", ["get", "class"], "grass"], "zoo_icon", "hospital_icon"]
|
|
}
|
|
}
|
|
]
|
|
}
|