BitmapDescriptorFactory

Factory for creating marker icons.

Provides predefined color constants and methods to generate marker icon descriptors from various sources (default colors, resources, assets, bitmaps). Colors are specified using HSV hue values (0-360 degrees on the color wheel).

Properties

Link copied to clipboard
const val HUE_AZURE: Float = 210.0f
Link copied to clipboard
const val HUE_BLUE: Float = 240.0f
Link copied to clipboard
const val HUE_CYAN: Float = 180.0f
Link copied to clipboard
const val HUE_GREEN: Float = 120.0f
Link copied to clipboard
const val HUE_MAGENTA: Float = 300.0f
Link copied to clipboard
const val HUE_ORANGE: Float = 30.0f
Link copied to clipboard
const val HUE_RED: Float = 0.0f

Predefined HUE constants for common marker colors. Values represent degrees on the HSV color wheel.

Link copied to clipboard
const val HUE_ROSE: Float = 330.0f
Link copied to clipboard
const val HUE_VIOLET: Float = 270.0f
Link copied to clipboard
const val HUE_YELLOW: Float = 60.0f

Functions

Link copied to clipboard
fun defaultMarker(hue: Float = HUE_RED): BitmapDescriptor

Creates a marker icon descriptor with the specified hue.

Link copied to clipboard

Creates a marker icon descriptor from an asset file.

Link copied to clipboard

Creates a marker icon descriptor from a bitmap object.

Link copied to clipboard

Creates a marker icon descriptor from a drawable resource.