IconFactory

Deprecated

Factory for creating Icons from bitmap images.

icon is used to display bitmaps on top of the map using Marker.

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Functions

Link copied to clipboard
open fun defaultMarker(): Icon
Provides an icon using the default marker icon used for Marker.
Link copied to clipboard
open fun fromAsset(@NonNull assetName: String): Icon
Creates an Icon using the name of a Bitmap image in the assets directory.
Link copied to clipboard
open fun fromBitmap(@NonNull bitmap: Bitmap): Icon
Creates an icon from a given Bitmap image.
Link copied to clipboard
open fun fromFile(@NonNull fileName: String): Icon
Create an Icon using the name of a Bitmap image file located in the internal storage.
Link copied to clipboard
open fun fromPath(@NonNull absolutePath: String): Icon
Creates an Icon using the absolute file path of a Bitmap image.
Link copied to clipboard
open fun fromResource(@DrawableRes resourceId: Int): Icon
Creates an icon using the resource ID of a Bitmap image.
Link copied to clipboard
open fun getInstance(@NonNull context: Context): IconFactory
Get a single instance of IconFactory.
Link copied to clipboard
open fun recreate(@NonNull iconId: String, @NonNull bitmap: Bitmap): Icon
Create an Icon using a previously created icon identifier along with a provided Bitmap.