From 5fc3acbb24cb797776fcf7034dde90a6144ed84c Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Tue, 12 Mar 2019 12:48:16 -0700 Subject: [PATCH] Update handling of default options in Map#setStyle --- src/ui/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/map.js b/src/ui/map.js index c4c872d041c..c2c6697f3f7 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -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 {