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 12, 2019
1 parent 6bb8500 commit 5fc3acb
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 @@ -963,7 +963,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 5fc3acb

Please sign in to comment.