Utils

Location utils.

Deprecated

Location Plugin is deprecated, use Location Component Plugin instead.

class Utils

Functions

calculateZoomLevelRadius
Link copied to clipboard
open fun calculateZoomLevelRadius(projection: MapProjectionDelegate, location: Location): Float
generateShadow
Link copied to clipboard
open fun generateShadow(drawable: Drawable, elevation: Float): Bitmap
immediateAnimation
Link copied to clipboard
open fun immediateAnimation(projection: MapProjectionDelegate, current: Point, target: Point): Boolean
normalize
Link copied to clipboard

Normalizes an angle to be in the [0, 360] range.

open fun normalize(angle: Float): Float
shortestRotation
Link copied to clipboard

Util for finding the shortest path from the current rotated degree to the new degree.

open fun shortestRotation(heading: Float, previousHeading: Float): Float