Skip to content

Commit 0b17b62

Browse files
committed
add raster/raster and image/raster layers
1 parent 54efdad commit 0b17b62

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
41.6 KB
Loading

test/image/mocks/mapbox_layers.json

+32-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@
2121
"#7570b3"
2222
]
2323
}
24+
},
25+
{
26+
"type": "scattermapbox",
27+
"subplot": "mapbox2"
2428
}
2529
],
2630
"layout": {
2731
"mapbox": {
32+
"domain": {"x": [0, 0.48], "y": [0, 1]},
2833
"style": "light",
2934
"center": {
3035
"lon": -73.59194521800514,
@@ -547,8 +552,33 @@
547552
}
548553
]
549554
},
555+
556+
"mapbox2": {
557+
"domain": {"x": [0.52, 1], "y": [0, 1]},
558+
"style": "mapbox://styles/mapbox/light-v10",
559+
"zoom": 4.5,
560+
"center": {"lon": -74.5, "lat": 42},
561+
"layers": [
562+
{
563+
"sourcetype": "raster",
564+
"source": [
565+
"https://img.nj.gov/imagerywms/Natural2015?bbox={bbox-epsg-3857}&format=image/png&service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&transparent=true&width=256&height=256&layers=Natural2015"
566+
],
567+
"below": "aeroway-line"
568+
},
569+
{
570+
"sourcetype": "image",
571+
"coordinates": [
572+
[-80.425, 46.437],
573+
[-71.516, 46.437],
574+
[-71.516, 37.936],
575+
[-80.425, 37.936]
576+
],
577+
"source": "https://docs.mapbox.com/mapbox-gl-js/assets/radar.gif"
578+
}
579+
]
580+
},
550581
"height": 450,
551-
"width": 1100,
552-
"autosize": true
582+
"width": 900
553583
}
554584
}

0 commit comments

Comments
 (0)