Map Place Category
data class MapPlaceCategory @JvmOverloads constructor(id: String, backgroundStyle: MapPlaceCategory.BackgroundStyle?, textStyle: MapPlaceCategory.TextStyle?, imageStyle: MapPlaceCategory.ImageStyle?, clusterId: String, zoomLimit: Float) : Parcelable
Content copied to clipboard
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)
Content copied to clipboard
Types
Background Style
Link copied to clipboard
data class BackgroundStyle(bitmapFactory: BitmapFactory, anchor: Point2F) : Parcelable
Content copied to clipboard
Image Style
Link copied to clipboard
data class ImageStyle(bitmapFactory: BitmapFactory, placement: MapPlaceCategory.Placement) : Parcelable
Content copied to clipboard
Placement
Link copied to clipboard
data class Placement @JvmOverloads constructor(inBackground: Boolean, anchor: Point2F?, padding: Rect?) : Parcelable
Content copied to clipboard
Placement specification of text and/or image inside map place object. You have to choose between anchor or padding placement
Text Style
Link copied to clipboard
data class TextStyle(textStyle: StyledText.MapTextStyle, placement: MapPlaceCategory.Placement) : Parcelable
Content copied to clipboard
Functions
Properties
backgroundStyle
Link copied to clipboard
clusterId
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.
imageStyle
Link copied to clipboard
textStyle
Link copied to clipboard