get Badged Availability Icon
@Nullable
Content copied to clipboard
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
original Icon
The original icon
badge Position
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)
color On
The color for a positive state
color Off
The color for a negative state
scale Factor
Scale factor (how much smaller or larger the badge should be relative to the icon. Recommended value 0.4f)