Builder

class Builder : ViewObjectDataBuilder<MarkerData.Builder, MapMarker, MarkerData>

Constructors

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

Functions

build
Link copied to clipboard
fun build(): I
setAnchorPosition
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.Value 0,0 is top left location, 1,1 is bottom right.Default value is 0.5, 0.5.
setClickableArea
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.
setMaxZoomLevel
Link copied to clipboard
open fun setMaxZoomLevel(maxZoomLevel: Float): MarkerData.Builder
Set maximum zoom level for displaying the marker.
setMinZoomLevel
Link copied to clipboard
open fun setMinZoomLevel(minZoomLevel: Float): MarkerData.Builder
Set minimum zoom level for displaying the marker.
setZIndex
Link copied to clipboard
fun setZIndex(zIndex: Int): B
withIcon
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
withLabel
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.
withPayload
Link copied to clipboard
fun withPayload(@NonNull() payload: Parcelable): B