Skip to content

Commit

Permalink
add test for invalid pattern (#7286)
Browse files Browse the repository at this point in the history
  • Loading branch information
mollymerp authored Sep 18, 2018
1 parent 82bf025 commit d38ade8
Show file tree
Hide file tree
Showing 2 changed files with 135 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,135 @@
{
"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": {
}
}, {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-10,
-10
],
[
-10,
10
],
[
10,
10
],
[
10,
-10
],
[
-10,
-10
]
]
]
},
"properties": {
}
}, {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-40,
-10
],
[
-40,
10
],
[
-20,
10
],
[
-20,
-10
],
[
-40,
-10
]
]
]
},
"properties": {
}
}
]
}


}
},
"sprite": "local://sprites/emerald",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color" : "#fff"
}
},
{
"id": "fill",
"type": "fill",
"source": "geojson",
"paint": {
"fill-antialias": false,
"fill-pattern": ["get", "pattern"]
}
}
]
}


0 comments on commit d38ade8

Please sign in to comment.