Skip to content

Commit

Permalink
add mapbox using OSM map raster style mock
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jun 26, 2019
1 parent 1987b22 commit 23ffe4f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Binary file added test/image/baselines/mapbox_osm-style.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions test/image/mocks/mapbox_osm-style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"data": [
{
"type": "scattermapbox",
"lon": [ 10, 20 ],
"lat": [ 20, 10 ]
}
],
"layout": {
"mapbox": {
"style": {
"id": "osm",
"version": 8,
"sources": {
"simple-tiles": {
"type": "raster",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
"https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"
],
"tileSize": 256
}
},
"layers": [
{
"id": "simple-tiles",
"type": "raster",
"source": "simple-tiles",
"minzoom": 0,
"maxzoom": 22
}
]
}
}
}
}

0 comments on commit 23ffe4f

Please sign in to comment.