Skip to content

Commit

Permalink
Unit test geojson source with fractional minzoom on layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Jul 31, 2017
1 parent f697d41 commit 7a26885
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"center": [
0,
0
],
"zoom": 4.5,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
}
}
}
},
"layers": [
{
"id": "line1",
"type": "circle",
"source": "geojson",
"minzoom": 4.3,
"paint": {
"circle-color": "red",
"circle-radius": 4,
"circle-translate": [-5, -5]
}
},
{
"id": "line2",
"type": "circle",
"source": "geojson",
"minzoom": 4.5,
"paint": {
"circle-color": "green",
"circle-radius": 4
}
},
{
"id": "line3",
"type": "circle",
"source": "geojson",
"minzoom": 4.7,
"paint": {
"circle-color": "blue",
"circle-radius": 4,
"circle-translate": [5, 5]
}
}
]
}

0 comments on commit 7a26885

Please sign in to comment.