Constructor
new CoordinateReferenceSystemCombo()
Create a CRS combo.
Extends
- React.Component
Members
fetchCrs
Fetch CRS definitions from epsg.io for given search string
handleSearch
This function gets called when the EPSG.io fetch returns an error. It logs the error to the console.
onCrsItemSelect
Handles selection of a CRS item in Autocomplete
transformResults
This function transforms results of EPSG.io
Methods
onFetchError(error)
This function gets called when the EPSG.io fetch returns an error. It logs the error to the console.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | The error string. |
render()
The render function.
transformCrsObjectsToOptions(crsObj) → {Option}
Tranforms CRS object returned by EPSG.io to antd Option component
Parameters:
Name | Type | Description |
---|---|---|
crsObj |
type | Single plain CRS object returned by EPSG.io |
Returns:
Option component to render
- Type
- Option