ConvertUtils

Util class for converting properties.

Functions

Link copied to clipboard
fun calculateMercatorCoordinateShift(startPoint: Point, endPoint: Point, zoomLevel: Double): MercatorCoordinate

Calculate the shift between two Points in Mercator coordinate.

Link copied to clipboard
fun convertDoubleArray(value: List<Any>?): JsonArray

Convert a list into a JsonArray with double format

Link copied to clipboard
fun convertStringArray(value: List<Any>?): JsonArray

Convert a list into a JsonArray with string format

Link copied to clipboard
fun shiftPointWithMercatorCoordinate(point: Point, shiftMercatorCoordinate: MercatorCoordinate, zoomLevel: Double): Point

Apply a MercatorCoordinate to the original point.

Link copied to clipboard
fun toDoubleArray(jsonArray: JsonArray?): List<Double>

Convert a JsonArray to a list of Double

Link copied to clipboard
fun toStringArray(jsonArray: JsonArray?): List<String>

Convert a JsonArray to a list of String