Skip to content

Commit 9a413f6

Browse files
committed
- (Refactor) Refactored the setIcon method on the Marker class
1 parent 9166e65 commit 9a413f6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

resources/js/plugin.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,10 @@ var GoogleMaps = {
544544
if(_.isArray(value.origin)) {
545545
value.origin = new google.maps.Point(value.origin[0], value.origin[1]);
546546
}
547+
548+
if(value.icon == '') {
549+
value = false;
550+
}
547551
}
548552

549553
this.api.setIcon(value);

0 commit comments

Comments
 (0)