Filter Class

Bing
 

The Fitler class defines the logic behind a filter expression that can be executed against a JSON object or generate a filter string that can be used with the Bing Spatial Data Services.

Filter(propertyName: string, operator: string | FilterCompareOperator, value: any)

NameReturn TypeDescription
execute(object: any)booleanExecutes the filter logic against a JSON object and returns a boolean indicating if the object meets the requirement of the Filter.
toString()stringConverts the filter logic into a string format that is compatible with the Bing Spatial Data Services.

Tip: If you have an array of objects and want to filter out those that match your filters, simply loop through your array and execute the filter against each object.

Show: