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
Parameter | Type | Description |
---|---|---|
datasource | object | object | object & object | the datasource to fetch features from |
url | string | the url of the datasource |
options | GetDatasourceFeaturesOptions | - |
Returns
Promise
<Feature
<G
>[]>
feature array