Skip to main content
Version: Next

fgbFetchAll()

function fgbFetchAll<F>(url, box?): Promise<F[]>

Fetch features within bounding box and deserializes them, awaiting all of them before returning. Useful when running a spatial function on the whole set is faster than running one at a time as the deserialize generator provides them

Type Parameters

Type Parameter
F extends Feature<Geometry, GeoJsonProperties>

Parameters

ParameterType
urlstring
box?BBox

Returns

Promise<F[]>