Skip to content

queryPbfAsGeoJSONOrArcGIS

Function
queryPbfAsGeoJSONOrArcGIS(urlstring, queryOptionsIRequestOptions): 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
ParameterTypeNotes
urlstring

A feature service url

queryOptionsIRequestOptions

Options for the request that has been passed through appendCustomParams

Returns 
Promise<IQueryFeaturesResponse | IQueryAllFeaturesResponse>

A Promise that will resolve with the query response.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.