Class: CoordinateReferenceSystemCombo

CoordinateReferenceSystemCombo()

The CoordinateReferenceSystemCombo

Constructor

new CoordinateReferenceSystemCombo()

Create a CRS combo.

Source:

Extends

  • React.Component

Members

fetchCrs

Fetch CRS definitions from epsg.io for given search string

Source:

handleSearch

This function gets called when the EPSG.io fetch returns an error. It logs the error to the console.

Source:

onCrsItemSelect

Handles selection of a CRS item in Autocomplete

Source:

transformResults

This function transforms results of EPSG.io

Source:

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.

Source:

render()

The render function.

Source:

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

Source:
Returns:

Option component to render

Type
Option