fromResource

Creates a marker icon descriptor from a drawable resource.

Bitmap and vector drawables are both supported; the drawable is rendered at its intrinsic size.

Return

A BitmapDescriptor for the resource marker

Parameters

resourceId

The drawable resource ID (e.g., R.drawable.marker_icon)