MapPlaceCategory

data class MapPlaceCategory @JvmOverloads constructor(    val id: String,     val backgroundStyle: MapPlaceCategory.BackgroundStyle? = null,     val textStyle: MapPlaceCategory.TextStyle? = null,     val imageStyle: MapPlaceCategory.ImageStyle? = null,     val clusterId: String,     val zoomLimit: Float) : Parcelable

Representation of imported map place category properties. At least one of the style properties should be non-null, otherwise object won't be visible on map

Constructors

Link copied to clipboard
fun MapPlaceCategory(    id: String,     backgroundStyle: MapPlaceCategory.BackgroundStyle? = null,     textStyle: MapPlaceCategory.TextStyle? = null,     imageStyle: MapPlaceCategory.ImageStyle? = null,     clusterId: String,     zoomLimit: Float)

Types

Link copied to clipboard
data class BackgroundStyle(val bitmapFactory: BitmapFactory, var anchor: Point2F) : Parcelable
Link copied to clipboard
data class ImageStyle(val bitmapFactory: BitmapFactory, val placement: MapPlaceCategory.Placement) : Parcelable
Link copied to clipboard
data class Placement @JvmOverloads constructor(    val inBackground: Boolean,     val anchor: Point2F? = null,     val padding: Rect? = null) : Parcelable

Placement specification of text and/or image inside map place object. You have to choose between anchor or padding placement

Link copied to clipboard
data class TextStyle(val textStyle: StyledText.MapTextStyle, val placement: MapPlaceCategory.Placement) : Parcelable

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val backgroundStyle: MapPlaceCategory.BackgroundStyle? = null

background style of imported map place object

Link copied to clipboard
val clusterId: String

string id reference to another MapPlaceCategory which will be used for drawing clustered objects of this category. Put empty string to avoid clustering.

Link copied to clipboard
val id: String

unique string identifier of category

Link copied to clipboard
val imageStyle: MapPlaceCategory.ImageStyle? = null

image style of imported map place object

Link copied to clipboard
val textStyle: MapPlaceCategory.TextStyle? = null

text style of imported map place object

Link copied to clipboard
val zoomLimit: Float

Min zoom level, where this category should be visible from 0F (view from space) to 20F (closest to the ground)