86 lines
1.8 KiB
JSON
86 lines
1.8 KiB
JSON
{
|
|
"version": 8,
|
|
"metadata": {
|
|
"test": {
|
|
"width": 64,
|
|
"height": 64,
|
|
"operations": [
|
|
[
|
|
"setFeatureState",
|
|
{
|
|
"source": "geojson",
|
|
"id": "1"
|
|
},
|
|
{
|
|
"hover": true
|
|
}
|
|
],
|
|
[
|
|
"wait"
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"sprite": "local://sprites/emerald",
|
|
"zoom": 1,
|
|
"sources": {
|
|
"geojson": {
|
|
"type": "geojson",
|
|
"data": {
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"id": 1,
|
|
"properties": {
|
|
"pattern": "generic_icon"
|
|
},
|
|
"geometry": {
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-10,
|
|
-10
|
|
],
|
|
[
|
|
-10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
10
|
|
],
|
|
[
|
|
10,
|
|
-10
|
|
],
|
|
[
|
|
-10,
|
|
-10
|
|
]
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"layers": [
|
|
{
|
|
"id": "fill",
|
|
"type": "fill",
|
|
"source": "geojson",
|
|
"paint": {
|
|
"fill-pattern": [
|
|
"case",
|
|
["boolean", ["feature-state", "hover"], false],
|
|
"generic_icon",
|
|
"generic_metro"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|