queryPbfAsGeoJSONOrArcGIS
FunctionqueryPbfAsGeoJSONOrArcGIS(url: string, queryOptions: IRequestOptions): Promise<IQueryFeaturesResponse | IQueryAllFeaturesResponse>Query and decode pbf features on the client. Improves performance on slow networks and large queries. Handles both f=pbf-as-geojson and f=pbf-as-arcgis format query params and handles errors.
Parameters
| Parameter | Type | Notes |
|---|---|---|
url | string | A feature service url |
query | IRequestOptions | Options for the request that has been passed through appendCustomParams |
Returns
Promise<IQueryFeaturesResponse | IQueryAllFeaturesResponse>A Promise that will resolve with the query response.