LocationDisplayRule

class LocationDisplayRule

Location display rules. Not to be confused with DisplayRule objects that come from the server.

Constructors

Link copied to clipboard
open fun LocationDisplayRule(@NonNull name: String, @NonNull srcLocationDisplayRule: LocationDisplayRule)
Creates a new LocationDisplayRule given another one

Types

Link copied to clipboard
class Builder

Functions

Link copied to clipboard
@Nullable
fun getIcon(): Bitmap
Get the icon bitmap for this rule.
Link copied to clipboard
fun getIconAnchorU(): Float
Get icon's anchor U value
Link copied to clipboard
fun getIconAnchorV(): Float
Get icon's anchor V value
Link copied to clipboard
fun getIconHeight(): Int
The icon (if any) target height in pixels
Link copied to clipboard
fun getIconResourceId(): Int
Link copied to clipboard
fun getIconTintColor(): Int
Returns the tint color
Link copied to clipboard
fun getIconWidth(): Int
The icon (if any) target width in pixels
Link copied to clipboard
@Nullable
open fun getLabelContent(@Nullable location: MPLocation): String
Get the label content for a given location.
Link copied to clipboard
fun getLabelZoomLevelOff(): Float
Gets the zoom level where the label is visible to
Link copied to clipboard
fun getLabelZoomLevelOn(): Float
Gets the zoom level where the label is visible from
Link copied to clipboard
fun getShowLabel(): Boolean
Get whether or not to show the marker as a label.
Link copied to clipboard
fun getZoomLevelOff(): Float
Gets the zoom level where the icon is visible to
Link copied to clipboard
fun getZoomLevelOn(): Float
Gets the zoom level where the icon is visible from
Link copied to clipboard
fun hasIconSizeSet(): Boolean
True if a custom size (uniform or not) has been set
Link copied to clipboard
fun isIconADrawable(): Boolean
Whether the icon, if available, was set using a Drawable resource (Bitmap or Vector)
Link copied to clipboard
fun isIconAVectorDrawable(): Boolean
Whether the icon, if available, was set using a Vector Drawable
Link copied to clipboard
fun isShowLabel(): Boolean
Get the show label flag.
Link copied to clipboard
fun isVisible(): Boolean
Get whether or not to show the marker.
Link copied to clipboard
fun setVisible(show: Boolean): Boolean
Sets this Location Display Rule to be visible (based on the zoom on/off values) or not (marker icon not shown)
Link copied to clipboard
@NonNull
open fun toString(): String

Properties

Link copied to clipboard
val DEFAULT_ICON_SCALE: Float
Link copied to clipboard
val DEFAULT_ICON_UNIFORM_SIZE_IN_DP: Int
Default icon uniform size in dp
Link copied to clipboard
val DEFAULT_LABEL_MAX_ZOOM: Float
Link copied to clipboard
val DEFAULT_LABEL_MIN_ZOOM: Float
Link copied to clipboard
val DEFAULT_MARKER_ICON_ANCHOR_U: Float
Link copied to clipboard
val DEFAULT_MARKER_ICON_ANCHOR_V: Float
Link copied to clipboard
val DEFAULT_MARKER_LABEL_ANCHOR_U: Float
Link copied to clipboard
val DEFAULT_MARKER_LABEL_ANCHOR_V: Float
Link copied to clipboard
val DEFAULT_MARKER_LABEL_LENGTH_NO_CAP: Int
Link copied to clipboard
val DEFAULT_MARKER_LABEL_MAX_WIDTH: Int
Link copied to clipboard
val DEFAULT_MAX_ZOOM: Float
Link copied to clipboard
val DEFAULT_MIN_ZOOM: Float
Link copied to clipboard
@NonNull
val DEFAULT_POI_LABEL_TEMPLATE: String
The default label template is to use the location name.
Link copied to clipboard
open val labelMaxCharLength: Int
Defaults to 0 (no cap)
Link copied to clipboard
private open var labelMaxWidth: Int
Link copied to clipboard
open var labelZoomFrom: Float
Link copied to clipboard
open var labelZoomTo: Float
Link copied to clipboard
@NonNull
@get:NonNull
open val name: String
Link copied to clipboard
@get:Nullable
open val poiTypeDisplayRuleLabel: String
A copy of POIType->displayRule->label
Link copied to clipboard
@Nullable
open var polygonDisplayRule: PolygonDisplayRule
Link copied to clipboard
open var zoomFrom: Float
Link copied to clipboard
open var zoomTo: Float