DisplayRule

open class DisplayRule : MPModelBase

Used as the JSON model for server communication. Not to be confused with 'LocationDisplayRule' objects used locally for locations. Referred to from POIType, thus DisplayRules are used in the set of types defined in solution.

Location based rules are received in DisplayRule format and stored in a LocationDisplayRule object locally.

Author

Martin Hansen - Copyright © 2017 MapsPeople A/S. All rights reserved.

Constructors

Link copied to clipboard
open fun DisplayRule()

Functions

Link copied to clipboard
@Nullable
open fun getIconUrl(): String
Link copied to clipboard
open fun isVisible(): Boolean
Link copied to clipboard
open fun showLabel(): Boolean

Properties

Link copied to clipboard
open val displayRank: Int
Display rank determines which POI (or group of POIs) will be displayed in case of conflicts / overlaps.
Link copied to clipboard
@SerializedName(value = "iconVisible")
@Nullable
@get:Nullable
open val iconVisible: Boolean
Link copied to clipboard
@SerializedName(value = "imageScale")
@Nullable
@get:Nullable
open val imageScale: Float
Link copied to clipboard
@SerializedName(value = "imageSize")
@Nullable
@get:Nullable
open val imageSize: ImageSize
Link copied to clipboard
@SerializedName(value = "label")
@Nullable
@get:Nullable
open val label: String
Link copied to clipboard
@SerializedName(value = "labelVisible")
@Nullable
@get:Nullable
open val labelVisible: Boolean
Link copied to clipboard
@SerializedName(value = "polygon")
@Nullable
@get:Nullable
open val polygonDisplayRule: PolygonDisplayRule