Skip to content

Commit

Permalink
Add test case for mapbox/mapbox-gl-js#3604
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Nov 12, 2016
1 parent 7111a29 commit 371ba8d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
15 changes: 15 additions & 0 deletions query-tests/circle-radius/property-function/expected.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
{
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
},
"type": "Feature",
"properties": {
"radius": 20
}
}
]
48 changes: 48 additions & 0 deletions query-tests/circle-radius/property-function/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"queryGeometry": [
32,
32
],
"ignored": {
"js": "https://github.com/mapbox/mapbox-gl-js/issues/3604",
"native": "https://github.com/mapbox/mapbox-gl-native/issues/6518"
}
}
},
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "Feature",
"properties": {
"radius": 20
},
"geometry": {
"type": "Point",
"coordinates": [
0,
0
]
}
}
}
},
"layers": [
{
"id": "circle",
"type": "circle",
"source": "mapbox",
"paint": {
"circle-radius": {
"type": "identity",
"property": "radius"
}
}
}
]
}

0 comments on commit 371ba8d

Please sign in to comment.