Skip to content

Commit

Permalink
Update handling of default options in Map#setStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Mar 14, 2019
1 parent e3f00b8 commit c605974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ class Map extends Camera {
setStyle(style: StyleSpecification | string | null, options?: {diff?: boolean} & StyleOptions) {
options = extend({}, { localIdeographFontFamily: defaultOptions.localIdeographFontFamily}, options);

if ((!options || (options.diff !== false && !options.localIdeographFontFamily)) && this.style && style) {
if ((options.diff !== false && !options.localIdeographFontFamily) && this.style && style) {
this._diffStyle(style, options);
return this;
} else {
Expand Down

0 comments on commit c605974

Please sign in to comment.