Companion

object Companion

Functions

Link copied to clipboard
fun defaultMarker(context: Context, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon using the SDK's built-in default pin (a teardrop marker in Woosmap brand blue).

fun defaultMarker(context: Context, hue: Float, anchor: Point? = null, scaledSize: Size? = null): Icon

Build a hue-tinted variant of the SDK's built-in default pin.

Link copied to clipboard
fun fromAsset(context: Context, assetName: String, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon from a file packaged under the app's assets/ directory.

Link copied to clipboard
fun fromBitmap(bitmap: Bitmap, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon from an in-memory Bitmap.

Link copied to clipboard
fun fromFile(context: Context, fileName: String, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon from a file in the app's internal files directory (Context.getFilesDir), matching Google Maps Android's fromFile semantics.

Link copied to clipboard
fun fromPath(absolutePath: String, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon from an absolute file path.

Link copied to clipboard
fun fromResource(context: Context, @DrawableRes resId: Int, anchor: Point? = null, scaledSize: Size? = null): Icon

Build an Icon from a drawable resource.