Returns the passed in value (in display units) converted to meters
get the current display units for distance measurements
Change the display units for distance measurements.
api.geospatial.setDistanceMeasurementUnits('Centimeters')
(as a string) - method will do nothing if you pass in an invalid unit type
radians value to convert
decimal degrees value to convert
Transform a project coordinate, or array of coordinates, into WGS84 latitude/longitude/height
returned coordinates will be in decimal degrees (height in meters)
Transform a WGS84 coordinate, or array of coordinates, into the project coordinate system
let coord = await api.geospatial.transformWgs84ToProject({
latitude: 45,
longitude: 100,
height: 10
})
if (coord) {
if (coord.isGeographic) {
// coord will have latitude, longitude and height props
} else {
// coord will have x, y, z props
}
}
Check the isGeographic property of the returned object to determine if the return value is an IGeographicPoint or an ICartesianPoint
api.geospatial