File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1358,7 +1358,7 @@ Marker.prototype.getParams = function() {
13581358 return this . get ( 'params' ) ;
13591359} ;
13601360Marker . prototype . setOpacity = function ( opacity ) {
1361- if ( ! opacity ) {
1361+ if ( ! opacity && opacity !== 0 ) {
13621362 console . log ( 'opacity value must be int or double' ) ;
13631363 return false ;
13641364 }
@@ -1810,7 +1810,7 @@ TileOverlay.prototype.getOpacity = function() {
18101810 return this . get ( 'opacity' ) ;
18111811} ;
18121812TileOverlay . prototype . setOpacity = function ( opacity ) {
1813- if ( ! opacity ) {
1813+ if ( ! opacity && opacity !== 0 ) {
18141814 console . log ( 'opacity value must be int or double' ) ;
18151815 return false ;
18161816 }
@@ -1906,7 +1906,7 @@ GroundOverlay.prototype.getBearing = function() {
19061906} ;
19071907
19081908GroundOverlay . prototype . setOpacity = function ( opacity ) {
1909- if ( ! opacity ) {
1909+ if ( ! opacity && opacity !== 0 ) {
19101910 console . log ( 'opacity value must be int or double' ) ;
19111911 return false ;
19121912 }
You can’t perform that action at this time.
0 commit comments