getBadgedAvailabilityIcon

open fun getBadgedAvailabilityIcon(@Nullable originalIcon: Bitmap, targetHeight: Int, targetWidth: Int, @Nullable badgePosition: MPBadgePosition, available: Boolean): Bitmap

Returns an icon with an availability badge (checkmark or cross badge). 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

originalIcon

The original icon

targetHeight

target height

targetWidth

target width

badgePosition

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

available

The boolean state of which to render the location available or unavailable