Map Place Category
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
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
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
Link copied to clipboard
data class BackgroundStyle(val bitmapFactory: BitmapFactory, var anchor: Point2F) : Parcelable
Content copied to clipboard
Link copied to clipboard
data class ImageStyle(val bitmapFactory: BitmapFactory, val placement: MapPlaceCategory.Placement) : Parcelable
Content copied to clipboard
Link copied to clipboard
data class Placement @JvmOverloads constructor( val inBackground: Boolean, val anchor: Point2F? = null, val padding: Rect? = null) : 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
Link copied to clipboard
data class TextStyle(val textStyle: StyledText.MapTextStyle, val placement: MapPlaceCategory.Placement) : Parcelable
Content copied to clipboard
Functions
Properties
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.