File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments