diff --git a/src/source/geojson_source.ts b/src/source/geojson_source.ts index d647d5a0eb0..b77069be00d 100644 --- a/src/source/geojson_source.ts +++ b/src/source/geojson_source.ts @@ -289,7 +289,7 @@ class GeoJSONSource extends Evented implements ISource { * "Another Island" * ]); */ - setFilter(filter: ?FilterSpecification): this { + setFilter(filter?: FilterSpecification): this { this.workerOptions = extend({filter}, this.workerOptions); this._updateWorkerData(); return this;