@@ -58,7 +58,7 @@ exports.plot = function plotMapbox(gd) {
58
58
for ( var i = 0 ; i < mapboxIds . length ; i ++ ) {
59
59
var id = mapboxIds [ i ] ,
60
60
fullMapboxData = Plots . getSubplotData ( fullData , 'mapbox' , id ) ,
61
- mapbox = fullLayout [ id ] . _mapbox ;
61
+ mapbox = fullLayout [ id ] . _subplot ;
62
62
63
63
if ( ! mapbox ) {
64
64
mapbox = createMapbox ( {
@@ -69,7 +69,7 @@ exports.plot = function plotMapbox(gd) {
69
69
staticPlot : gd . _context . staticPlot
70
70
} ) ;
71
71
72
- fullLayout [ id ] . _mapbox = mapbox ;
72
+ fullLayout [ id ] . _subplot = mapbox ;
73
73
}
74
74
75
75
mapbox . plot ( fullMapboxData , fullLayout , gd . _promises ) ;
@@ -82,8 +82,8 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
82
82
for ( var i = 0 ; i < oldMapboxKeys . length ; i ++ ) {
83
83
var oldMapboxKey = oldMapboxKeys [ i ] ;
84
84
85
- if ( ! newFullLayout [ oldMapboxKey ] && ! ! oldFullLayout [ oldMapboxKey ] . _mapbox ) {
86
- oldFullLayout [ oldMapboxKey ] . _mapbox . destroy ( ) ;
85
+ if ( ! newFullLayout [ oldMapboxKey ] && ! ! oldFullLayout [ oldMapboxKey ] . _subplot ) {
86
+ oldFullLayout [ oldMapboxKey ] . _subplot . destroy ( ) ;
87
87
}
88
88
}
89
89
} ;
@@ -96,7 +96,7 @@ exports.toSVG = function(gd) {
96
96
for ( var i = 0 ; i < subplotIds . length ; i ++ ) {
97
97
var opts = fullLayout [ subplotIds [ i ] ] ,
98
98
domain = opts . domain ,
99
- mapbox = opts . _mapbox ;
99
+ mapbox = opts . _subplot ;
100
100
101
101
var imageData = mapbox . toImage ( 'png' ) ;
102
102
var image = fullLayout . _glimages . append ( 'svg:image' ) ;
0 commit comments