MPDisplayRule
This class represents a Display Rule, a MapsIndoors concept which describes a number of styling values for MapsIndoors objects. The values contained within dictates how the MapsIndoors SDK renders a given object on the map (POI, area, selection, model, etc.). Display Rule data can be edited through the MapsIndoors CMS, and can be modified on runtime in SDKs. Invoke reset on a MPDisplayRule to reset all values to those from the CMS.
Constructors
Link copied to clipboard
open fun MPDisplayRule( @NonNull id: String, @NonNull parent: WeakReference<MPDisplayRule>, @NonNull options: MPDisplayRuleOptions)
Content copied to clipboard
Create an empty MPDisplayRule.
Link copied to clipboard
open fun MPDisplayRule(@NonNull id: String, @NonNull options: MPDisplayRuleOptions)
Content copied to clipboard
Create an empty MPDisplayRule.
Link copied to clipboard
open fun MPDisplayRule(@NonNull id: String, @NonNull parent: WeakReference<MPDisplayRule>)
Content copied to clipboard
Create an empty MPDisplayRule.
Link copied to clipboard
Create an empty MPDisplayRule.
Functions
Link copied to clipboard
Bulk update this Rule with the fields set in the MPDisplayRuleOptions
Link copied to clipboard
Get extrusion color (hex color code e.g.
Link copied to clipboard
Get extrusion height in meters
Link copied to clipboard
Get extrusion "zoom from" value, dictating from which zoom level the extrusion should stop being shown
Link copied to clipboard
Get extrusion "zoom to" value, dictating from which zoom level the extrusion should stop being shown
Link copied to clipboard
open fun getIconAsync(@NonNull listener: OnResultAndDataReadyListener<Bitmap>)
Content copied to clipboard
Get the display rule's icon asynchronously
Link copied to clipboard
Get icon size
Link copied to clipboard
Get the icon URL
Link copied to clipboard
Get the max width for label text (in dp).
Link copied to clipboard
Get the label "zoom from" value, dictating from which zoom level the label should start being shown
Link copied to clipboard
Get the label "zoom to" value, dictating from which zoom level the label should stop being shown
Link copied to clipboard
Get 2D model bearing (rotation in degrees)
Link copied to clipboard
Get 2D model height in meters
Link copied to clipboard
Get 2D model URL
Link copied to clipboard
Get 2D model width in meters
Link copied to clipboard
Get 2D model "zoom from" value, dictating from which zoom level the model should start being shown
Link copied to clipboard
Get 2D model "zoom to" value, dictating from which zoom level the model should stop being shown
Link copied to clipboard
Get polygon fill color (hex color code e.g.
Link copied to clipboard
Get polygon fill opacity (0.0 = invisible, 1.
Link copied to clipboard
Get polygon stroke color (hex color code e.g.
Link copied to clipboard
Get polygon stroke opacity (0.0 = invisible, 1.
Link copied to clipboard
Get polygon stroke width
Link copied to clipboard
Get the polygon "zoom from" value, dictating from which zoom level the polygon should start being shown
Link copied to clipboard
Get the polygon "zoom to" value, dictating from which zoom level the polygon should stop being shown
Link copied to clipboard
Get wall color (hex color code e.g.
Link copied to clipboard
Get wall height in meters
Link copied to clipboard
Get wall "zoom from" value, dictating from which zoom level the wall should start being shown
Link copied to clipboard
Get wall "zoom to" value, dictating from which zoom level the wall should stop being shown
Link copied to clipboard
Get the "zoom from" value.
Link copied to clipboard
Set extrusion visibility
Link copied to clipboard
Get icon visibility
Link copied to clipboard
Get label visibility
Link copied to clipboard
Get 2D model visibility
Link copied to clipboard
Get polygon visibility
Link copied to clipboard
Validate the current state of MPDisplayRule values
Link copied to clipboard
Get wall visiblity
Link copied to clipboard
Set extrusion color
Set extrusion color (hex color code e.g.
Link copied to clipboard
Set extrusion height in meters
Link copied to clipboard
Set extrusion visibility
Link copied to clipboard
Set extrusion "zoom from" value, dictating from which zoom level the extrusion should stop being shown
Link copied to clipboard
Set extrusion "zoom to" value, dictating from which zoom level the extrusion should stop being shown
Link copied to clipboard
Set icon from bitmap
Set icon from drawable
Set icon from resource ID
Set icon URL (will be used to download the icon asset)
Link copied to clipboard
Set icon size (dp)
Link copied to clipboard
Set icon visibility
Link copied to clipboard
Set the max width for label text (in dp).
Link copied to clipboard
Set label visibility
Link copied to clipboard
Set the label "zoom from" value, dictating from which zoom level the label should start being shown
Link copied to clipboard
Set the label "zoom to" value, dictating from which zoom level the label should stop being shown
Link copied to clipboard
Set 2D model bearing (rotation in degrees)
Link copied to clipboard
Set 2D model height in meters
Link copied to clipboard
Set 2D model visibility
Link copied to clipboard
Set 2D model width in meters
Link copied to clipboard
Set 2D model "zoom from" value, dictating from which zoom level the model should start being shown
Link copied to clipboard
Set 2D model "zoom to" value, dictating from which zoom level the model should stop being shown
Link copied to clipboard
Set polygon fill color
Set polygon fill color (hex color code e.g.
Link copied to clipboard
Set polygon fill opacity (0.0 = invisible, 1.
Link copied to clipboard
Set polygon stroke color
Set polygon stroke color (hex color code e.g.
Link copied to clipboard
Set polygon stroke opacity (0.0 = invisible, 1.
Link copied to clipboard
Set polygon stroke width
Link copied to clipboard
Set polygon visibility
Link copied to clipboard
Set the polygon "zoom from" value, dictating from which zoom level the polygon should start being shown
Link copied to clipboard
Set the polygon "zoom to" value, dictating from which zoom level the polygon should stop being shown
Link copied to clipboard
Set general visibility value
Link copied to clipboard
Set wall color
Set wall color (hex color code e.g.
Link copied to clipboard
Set wall height in meters
Link copied to clipboard
Set wall visibility
Link copied to clipboard
Set wall "zoom from" value, dictating from which zoom level the wall should start being shown
Link copied to clipboard
Set wall "zoom to" value, dictating from which zoom level the wall should stop being shown
Link copied to clipboard
Set the "zoom from" value.