Skip to content

coordinateFormatter

const coordinateFormatter: object

Defined in: src/coordinateFormatter.ts:15

Converts point geometries to/from coordinate notation strings, mirroring ArcGIS.CoordinateFormatter (Swift) / com.arcgismaps.geometry.CoordinateFormatter (Kotlin). The from* calls return a point in spatialReference (WKID, default WGS84), or null if the string can’t be parsed.

fromLatitudeLongitude: (coordinates, spatialReference) => PointGeometry | null

Parses a latitude-longitude string into a point.

string

number = 4326

PointGeometry | null

fromMgrs: (coordinates, spatialReference, mode?) => PointGeometry | null

Parses an MGRS string into a point.

string

number = 4326

MgrsConversionMode

PointGeometry | null

fromUsng: (coordinates, spatialReference) => PointGeometry | null

Parses a USNG string into a point.

string

number = 4326

PointGeometry | null

fromUtm: (coordinates, spatialReference, mode?) => PointGeometry | null

Parses a UTM string into a point.

string

number = 4326

UtmConversionMode

PointGeometry | null

toLatitudeLongitude: (point, format?, decimalPlaces) => string | null

Formats a point as a latitude-longitude string.

PointGeometry

LatitudeLongitudeFormat

number = 6

string | null

toMgrs: (point, mode?, precision, addSpaces) => string | null

Formats a point as an MGRS string.

PointGeometry

MgrsConversionMode

number = 5

boolean = true

string | null

toUsng: (point, precision, addSpaces) => string | null

Formats a point as a USNG string.

PointGeometry

number = 5

boolean = true

string | null

toUtm: (point, mode?, addSpaces) => string | null

Formats a point as a UTM string.

PointGeometry

UtmConversionMode

boolean = true

string | null