Builder

class Builder : ViewObjectDataBuilder<B, I, D>

Constructors

Link copied to clipboard
open fun Builder(    latitude: Double,     longitude: Double,     creator: ObjectCreator<MapMarker, MarkerData>)
Link copied to clipboard
open fun Builder(@NonNull geoCoordinates: GeoCoordinates, creator: ObjectCreator<MapMarker, MarkerData>)
Link copied to clipboard
open fun Builder(@NonNull screenPosition: ViewObjectData.Point, creator: ObjectCreator<MapMarker, MarkerData>)

Functions

Link copied to clipboard
fun build(): I
Link copied to clipboard
open fun setAnchorPosition(@NonNull anchorPosition: PointF): MarkerData.Builder

open fun setAnchorPosition(x: Float, y: Float): MarkerData.Builder
Set the relative position of MapMarker from its anchored location.
Link copied to clipboard
open fun setClickableArea(    left: Int,     top: Int,     right: Int,     bottom: Int): MarkerData.Builder
Set clickable area defined by margins from image edges.
Link copied to clipboard
open fun setCollisions(collisions: Boolean): MarkerData.Builder
Set collisions for the marker image.
Link copied to clipboard
open fun setLabelCollisions(collisions: Boolean): MarkerData.Builder
Set collisions for the marker label.
Link copied to clipboard
open fun setMaxZoomLevel(maxZoomLevel: Float): MarkerData.Builder
Set maximum zoom level for displaying the marker.
Link copied to clipboard
open fun setMinZoomLevel(minZoomLevel: Float): MarkerData.Builder
Set minimum zoom level for displaying the marker.
Link copied to clipboard
fun setZIndex(zIndex: Int): B
Link copied to clipboard
open fun withIcon(@NonNull iconBitmap: Bitmap): MarkerData.Builder
open fun withIcon(@NonNull factory: BitmapFactory): MarkerData.Builder
open fun withIcon(@DrawableRes iconDrawable: Int): MarkerData.Builder
Link copied to clipboard
open fun withLabel(@NonNull styledLabel: StyledText): MarkerData.Builder
Set the styled label to be displayed with marker.
open fun withLabel(@NonNull label: String): MarkerData.Builder
Set the label to be displayed with marker.
Link copied to clipboard
fun withPayload(@NonNull payload: Parcelable): B