File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -730,9 +730,9 @@ describe('map plots', function() {
730
730
'Nk+M/wHwAEBgIApD5fRAAAAABJRU5ErkJggg==' ;
731
731
732
732
Plotly . react ( gd , makeFigure ( redImage ) ) . then ( function ( ) {
733
- var map = gd . _fullLayout . map . _subplot ;
734
- map = map . map ;
735
- layerSource = map . getSource ( map . layerList [ 1 ] . idSource ) ;
733
+ var _map = gd . _fullLayout . map . _subplot ;
734
+ map = _map . map ;
735
+ layerSource = map . getSource ( _map . layerList [ 1 ] . idSource ) ;
736
736
737
737
spyOn ( layerSource , 'updateImage' ) . and . callThrough ( ) ;
738
738
spyOn ( map , 'removeSource' ) . and . callThrough ( ) ;
@@ -745,9 +745,9 @@ describe('map plots', function() {
745
745
expect ( map . removeSource ) . not . toHaveBeenCalled ( ) ;
746
746
747
747
// Check order of layers
748
- var map = gd . _fullLayout . map . _subplot ;
749
- var mapLayers = map . getMapLayers ( ) ;
750
- var plotlyjsLayers = map . layerList ;
748
+ var _map = gd . _fullLayout . map . _subplot ;
749
+ var mapLayers = _map . getMapLayers ( ) ;
750
+ var plotlyjsLayers = _map . layerList ;
751
751
752
752
var indexLower = mapLayers . findIndex ( function ( layer ) {
753
753
return layer . id === 'plotly-layout-layer-' + plotlyjsLayers [ 0 ] . uid ;
You can’t perform that action at this time.
0 commit comments