ConvertUtils

object ConvertUtils

Util class for converting properties.

Functions

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

Calculate the shift between two Points in Mercator coordinate.

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

Convert a list into a JsonArray with double format

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

Convert a list into a JsonArray with string format

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

Apply a MercatorCoordinate to the original point.

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

Convert a JsonArray to a list of Double

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

Convert a JsonArray to a list of String