Skip to content

Commit 8673c7e

Browse files
Ruschiostepankuzmin
authored andcommitted
Fix mistakes
1 parent 92ae3d9 commit 8673c7e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/source/geojson_source.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class GeoJSONSource extends Evented<SourceEvents> implements ISource {
256256
/**
257257
* Sets filter for the GeoJSON data source and re-renders the map.
258258
*
259-
* @param {Array | string} filter An array for the filter expression.
259+
* @param {Array} filter An array for the filter expression.
260260
* @returns {GeoJSONSource} Returns itself to allow for method chaining.
261261
* @example
262262
* map.addSource('source_id', {
@@ -289,8 +289,8 @@ class GeoJSONSource extends Evented<SourceEvents> implements ISource {
289289
* "Another Island"
290290
* ]);
291291
*/
292-
setFilter(filter: Array | string): this {
293-
this.workerOptions = extend$1({ filter: filter }, this.workerOptions);
292+
setFilter(filter: Array): this {
293+
this.workerOptions = extend({filter: filter}, this.workerOptions);
294294
this._updateWorkerData();
295295
return this;
296296
}

0 commit comments

Comments
 (0)