getBadgedAvailabilityIcon

@Nullable
open fun getBadgedAvailabilityIcon(    location: MPLocation,     originalIcon: Bitmap,     badgePosition: BadgePosition,     state: Boolean,     colorOn: Int,     colorOff: Int,     scaleFactor: Float): Bitmap

Returns an icon with an availability badge (checkmark or cross badge, with colors, usually green and red). This is a useful way of getting the LiveData-style badges, like seen on locations with availability, when using LiveData on the map.

Return

A bitmap of a badged icon

Parameters

location

The given location, for which to generate a badged icon for

originalIcon

The original icon

badgePosition

The badge positioning, on the icon (bottom right, bottom left, etc.)

state

The binary state which should be reflected in the icon badge (on or off, available or unavailable)

colorOn

The color for a positive state

colorOff

The color for a negative state

scaleFactor

Scale factor (how much smaller or larger the badge should be relative to the icon. Recommended value 0.4f)