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
constructor(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

Properties

Link copied to clipboard

background style of imported map place object

Link copied to clipboard

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

image style of imported map place object

Link copied to clipboard

text style of imported map place object

Link copied to clipboard

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

Functions

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