File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type Tile from './tile';
1111import type Actor from '../util/actor' ;
1212import type { Callback } from '../types/callback' ;
1313import type { GeoJSONWorkerOptions } from './geojson_worker_source' ;
14- import type { GeoJSONSourceSpecification , PromoteIdSpecification } from '../style-spec/types' ;
14+ import type { GeoJSONSourceSpecification , PromoteIdSpecification , FilterSpecification } from '../style-spec/types' ;
1515import type { Cancelable } from '../types/cancelable' ;
1616
1717/**
@@ -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 } filter An array for the filter expression.
259+ * @param {FilterSpecification } filter A FilterSpecification type for the filter expression.
260260 * @returns {GeoJSONSource } Returns itself to allow for method chaining.
261261 * @example
262262 * map.addSource('source_id', {
@@ -289,7 +289,7 @@ class GeoJSONSource extends Evented<SourceEvents> implements ISource {
289289 * "Another Island"
290290 * ]);
291291 */
292- setFilter ( filter : Array ) : this {
292+ setFilter ( filter : ? FilterSpecification ) : this {
293293 this . workerOptions = extend ( { filter} , this . workerOptions ) ;
294294 this . _updateWorkerData ( ) ;
295295 return this ;
You can’t perform that action at this time.
0 commit comments