Skip to content

Commit 6706d37

Browse files
committed
replace _mapbox -> _subplot (after rebasing about #575)
1 parent 9c56ccb commit 6706d37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plots/mapbox/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports.plot = function plotMapbox(gd) {
5858
for(var i = 0; i < mapboxIds.length; i++) {
5959
var id = mapboxIds[i],
6060
fullMapboxData = Plots.getSubplotData(fullData, 'mapbox', id),
61-
mapbox = fullLayout[id]._mapbox;
61+
mapbox = fullLayout[id]._subplot;
6262

6363
if(!mapbox) {
6464
mapbox = createMapbox({
@@ -69,7 +69,7 @@ exports.plot = function plotMapbox(gd) {
6969
staticPlot: gd._context.staticPlot
7070
});
7171

72-
fullLayout[id]._mapbox = mapbox;
72+
fullLayout[id]._subplot = mapbox;
7373
}
7474

7575
mapbox.plot(fullMapboxData, fullLayout, gd._promises);
@@ -82,8 +82,8 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
8282
for(var i = 0; i < oldMapboxKeys.length; i++) {
8383
var oldMapboxKey = oldMapboxKeys[i];
8484

85-
if(!newFullLayout[oldMapboxKey] && !!oldFullLayout[oldMapboxKey]._mapbox) {
86-
oldFullLayout[oldMapboxKey]._mapbox.destroy();
85+
if(!newFullLayout[oldMapboxKey] && !!oldFullLayout[oldMapboxKey]._subplot) {
86+
oldFullLayout[oldMapboxKey]._subplot.destroy();
8787
}
8888
}
8989
};
@@ -96,7 +96,7 @@ exports.toSVG = function(gd) {
9696
for(var i = 0; i < subplotIds.length; i++) {
9797
var opts = fullLayout[subplotIds[i]],
9898
domain = opts.domain,
99-
mapbox = opts._mapbox;
99+
mapbox = opts._subplot;
100100

101101
var imageData = mapbox.toImage('png');
102102
var image = fullLayout._glimages.append('svg:image');

0 commit comments

Comments
 (0)