Skip to content

Commit

Permalink
Add addImage test
Browse files Browse the repository at this point in the history
  • Loading branch information
bsudekum authored and jfirebaugh committed Jan 9, 2017
1 parent 7438620 commit 9ab1943
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Binary file added image/marker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added render-tests/runtime-styling/image-add/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions render-tests/runtime-styling/image-add/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"ignored": {
"js": "https://github.com/mapbox/mapbox-gl-js/issues/2059"
},
"operations": [
[
"addImage",
"marker",
"./image/marker.png"
],
[
"addLayer",
{
"id": "geometry",
"type": "symbol",
"source": "geometry",
"layout": {
"icon-image": "marker"
}
}
],
[
"wait"
]
]
}
},
"sources": {
"geometry": {
"type": "geojson",
"data": {
"type": "Point",
"coordinates": [0, 0]
}
}
}
}

0 comments on commit 9ab1943

Please sign in to comment.