Skip to content

Commit 23aac64

Browse files
author
Hirbod
committed
fix #796
1 parent df1d1f9 commit 23aac64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

www/googlemaps-cdv-plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ Marker.prototype.getParams = function() {
13581358
return this.get('params');
13591359
};
13601360
Marker.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
};
18121812
TileOverlay.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

19081908
GroundOverlay.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
}

0 commit comments

Comments
 (0)