Skip to main content
Version: 7.0.0

getDatasourceFeatures()

function getDatasourceFeatures<G>(
datasource,
url,
options,
): Promise<Feature<G>[]>;

Fetches and returns features for a given datasource supporting a variety of formats/clients

Type Parameters

Type Parameter
G extends | Polygon | MultiPolygon | Point | MultiPoint | LineString | MultiLineString

Parameters

ParameterTypeDescription
datasourceobject | object | object & objectthe datasource to fetch features from
urlstringthe url of the datasource
optionsGetDatasourceFeaturesOptions-

Returns

Promise<Feature<G>[]>

feature array