Skip to main content

@mapgear/mapengine > Map > ConvertCoordinate

Map.ConvertCoordinate() method

Converts a coordinate between two projections

Signature:
ConvertCoordinate(inputProjection: string, outputProject: string, coordinate: number[]): number[];

Parameters

ParameterTypeDescription
inputProjectionstringInput projection in the form of EPSG:XXXX
outputProjectstringOutput projection in the form of EPSG:XXXX
coordinatenumber[]Coordinate to convert
Returns:

number[]