MapPlaceCategory

data class MapPlaceCategory @JvmOverloads constructor(id: String, backgroundStyle: MapPlaceCategory.BackgroundStyle?, textStyle: MapPlaceCategory.TextStyle?, imageStyle: MapPlaceCategory.ImageStyle?, clusterId: String, 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

MapPlaceCategory
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

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

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

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

Functions

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

Properties

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

background style of imported map place object

clusterId
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.

id
Link copied to clipboard
val id: String

unique string identifier of category

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

image style of imported map place object

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

text style of imported map place object

zoomLimit
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)