Skip to content

Commit

Permalink
Add test for #6536
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed May 1, 2018
1 parent aedbccc commit b446114
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"type": "Feature",
"id": 1,
"geometry": {
"type": "Point",
"coordinates": [0, 0]
},
"properties": {},
"source": "mapbox",
"state": { "big": true }
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"operations": [
[
"wait"
],
[
"setFeatureState",
{ "source": "mapbox", "id": 1},
{ "big": true }
],
[
"wait"
]
],
"queryGeometry": [
32,
16
]
}
},
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"id": 1,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
}
},
{
"id": 2,
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
5,
15
]
}
}
]
}
}
},
"layers": [
{
"id": "circle",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-radius": ["case",
["boolean", ["feature-state", "big"], false],
["number", 20],
["number", 3]
]
}
}
]
}

0 comments on commit b446114

Please sign in to comment.