You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`stacApi` | Instance of `StacApi`| Required. The STAC API you want to connect to.
121
+
`stacApi` | Instance of `StacApi`| | Required. The STAC API you want to connect to.
122
122
123
123
#### Return values
124
124
125
125
Option | Type | Description
126
126
------------------ | --------- | -------------
127
127
`submit` | `function` | Callback to submit the search using the current filter parameters. Excecutes an API call to the specified STAC API.
128
-
`bbox` | `array` | Array of coordinates `[northWestLon, northWestLat, southEastLon, southEastLat]`, `undefined` if unset.
128
+
`bbox` | `array<number>` | Array of coordinates `[northWestLon, northWestLat, southEastLon, southEastLat]`, `undefined` if unset.
129
129
`setBbox(bbox)` | `function` | Callback to set `bbox`. `bbox` must be an array of coordinates `[northWestLon, northWestLat, southEastLon, southEastLat]`, or `undefined` to reset.
130
130
`collections` | `array<string>` | List of select collection IDs included in the search query. `undefined` if unset.
131
131
`setCollections(collectionIDs)` | `function` | Callback to set `collections`. `collectionIDs` must be an `array` of `string` with the IDs of the selection collections, or `undefined` to reset.
@@ -134,21 +134,202 @@ Option | Type | Description
134
134
`dateRangeTo` | `string` | The to-date of the search query. `undefined` if unset.
135
135
`setDateRangeTo(toDate)` | `function` | Callback to set `dateRangeto`. `toDate` must be ISO representation of a date, ie. `2022-05-18`, or `undefined` to reset.
136
136
`results` | `object` | The result of the last search query; a [GeoJSON `FeatureCollection` with additional members](https://github.com/radiantearth/stac-api-spec/blob/v1.0.0-rc.2/fragments/itemcollection/README.md). `undefined` if the search request has not been submitted, or if there was an error.
137
-
`state` | `string` | The status of the request. `IDLE` before and after the request is sent or received. `LOADING` when the request is in progress.
137
+
`state` | `string` | The status of the request. `"IDLE"` before and after the request is sent or received. `"LOADING"` when the request is in progress.
138
138
`error` | [`Error`](#error) | Error information if the last request was unsuccessful. `undefined` if the last request was successful.
139
139
`nextPage` | `function` | Callback function to load the next page of results. Is `undefined` if the last page is the currently loaded.
140
140
`previousPage` | `function` | Callback function to load the previous page of results. Is `undefined` if the first page is the currently loaded.
This example assumes that a `Map` component handles drawing and calls `handleDrawComplete` to set the `bbox` for the search. `handleDrawComplete` is called with a GeoJSON feature representing the bounding box drawn on the map.
0 commit comments