File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -455,10 +455,10 @@ function plotGeo(gd) {
455
455
456
456
var i , geoId , fullGeoData , geo ;
457
457
458
- // if plotlyjs -geo-assets-bundle is not included,
459
- // initialize object to keep reference to every loaded topojsons
458
+ // if 'plotly -geo-assets.js' is not included,
459
+ // initialize object to keep reference to every loaded topojson
460
460
if ( window . PlotlyGeoAssets === undefined ) {
461
- window . PlotlyGeoAssets = { topojsons : { } } ;
461
+ window . PlotlyGeoAssets = { topojson : { } } ;
462
462
}
463
463
464
464
for ( i = 0 ; i < geoIds . length ; i ++ ) {
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ proto.plot = function(geoData, fullLayout) {
81
81
if ( _this . topojson === null || topojsonNameNew !== _this . topojsonName ) {
82
82
_this . topojsonName = topojsonNameNew ;
83
83
84
- if ( PlotlyGeoAssets . topojsons [ _this . topojsonName ] !== undefined ) {
85
- _this . topojson = PlotlyGeoAssets . topojsons [ _this . topojsonName ] ;
84
+ if ( PlotlyGeoAssets . topojson [ _this . topojsonName ] !== undefined ) {
85
+ _this . topojson = PlotlyGeoAssets . topojson [ _this . topojsonName ] ;
86
86
_this . onceTopojsonIsLoaded ( geoData , geoLayout ) ;
87
87
}
88
88
else {
@@ -94,7 +94,7 @@ proto.plot = function(geoData, fullLayout) {
94
94
// N.B this is async
95
95
d3 . json ( topojsonPath , function ( error , topojson ) {
96
96
_this . topojson = topojson ;
97
- PlotlyGeoAssets . topojsons [ _this . topojsonName ] = topojson ;
97
+ PlotlyGeoAssets . topojson [ _this . topojsonName ] = topojson ;
98
98
_this . onceTopojsonIsLoaded ( geoData , geoLayout ) ;
99
99
} ) ;
100
100
}
You can’t perform that action at this time.
0 commit comments