We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66492d commit 6ca8cf5Copy full SHA for 6ca8cf5
inst/htmlwidgets/plotly.js
@@ -199,7 +199,7 @@ HTMLWidgets.widget({
199
// https://www.mapbox.com/mapbox-gl-js/example/fitbounds/
200
// so we do this manually...
201
// TODO: make sure this triggers on a redraw and relayout as well as on initial draw
202
- var mapboxIDs = graphDiv._fullLayout._subplots.mapbox;
+ var mapboxIDs = graphDiv._fullLayout._subplots.mapbox || [];
203
for (var i = 0; i < mapboxIDs.length; i++) {
204
var id = mapboxIDs[i];
205
var mapOpts = x.layout[id] || {};
0 commit comments