Skip to content

Commit 23ffe4f

Browse files
committed
add mapbox using OSM map raster style mock
1 parent 1987b22 commit 23ffe4f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: test/image/baselines/mapbox_osm-style.png

55.5 KB
Loading

Diff for: test/image/mocks/mapbox_osm-style.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattermapbox",
5+
"lon": [ 10, 20 ],
6+
"lat": [ 20, 10 ]
7+
}
8+
],
9+
"layout": {
10+
"mapbox": {
11+
"style": {
12+
"id": "osm",
13+
"version": 8,
14+
"sources": {
15+
"simple-tiles": {
16+
"type": "raster",
17+
"tiles": [
18+
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png",
19+
"https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"
20+
],
21+
"tileSize": 256
22+
}
23+
},
24+
"layers": [
25+
{
26+
"id": "simple-tiles",
27+
"type": "raster",
28+
"source": "simple-tiles",
29+
"minzoom": 0,
30+
"maxzoom": 22
31+
}
32+
]
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)