MPDisplayRuleOptions
A collection of settings that can be applied to a MPDisplayRule
Can be used with MPDisplayRule to create a custom DisplayRule with these options
Alternatively, use applyOptions to update an existing DisplayRule with these options
Constructors
Link copied to clipboard
Create a new MPDisplayRuleOptions that can be used to bulk edit fields on a MPDisplayRule
Functions
Link copied to clipboard
Set badge fillColor
Link copied to clipboard
Set badge position
Link copied to clipboard
Set badge radius
Link copied to clipboard
Set badge scale
Link copied to clipboard
Set badge stroke color
Link copied to clipboard
Set badge stroke width
Link copied to clipboard
Set badge visibility
Link copied to clipboard
Set badge zoomFrom
Link copied to clipboard
Set badge zoomTo
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
open fun setExtrusionLightnessFactor(@FloatRange(from = "-1.0", to = 1.0) lightnessFactor: Float): MPDisplayRuleOptions
Set Extrusion Lightness Factor (-1.0 = Dark, 0.0 no lighting added, 1.
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 placement in relation to the anchor.
Link copied to clipboard
Set icon scale
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 the bearing value for the label, this value will only be applied when the MPLabelType is FLAT
Link copied to clipboard
Set the graphic label object for the label, this value will only be applied when the MPLabelType is GRAPHIC
Link copied to clipboard
Set the blur value of the label halo (in pixels) Blur is the halo's fadeout distance
Link copied to clipboard
Set the color of the label halo (hex color code e.g.
Link copied to clipboard
Set the width of the label halo (in pixels)
Link copied to clipboard
Set the color of the label text (hex color code e.g.
Link copied to clipboard
Set the opacity of the label text to a value between 0.0 and 1.
Link copied to clipboard
Set the size of the label characters (in pixels)
Link copied to clipboard
Set how the label should be rendered on the map
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 URL
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 3D model URL
Link copied to clipboard
Set 3D model rotation around the X-axis in degrees
Link copied to clipboard
Set 3D model rotation around the Y-axis in degrees
Link copied to clipboard
Set 3D model rotation around the Z-axis in degrees
Link copied to clipboard
Set 3D model scale as a multiple of its original size (1 is original size, 2 is double that, etc.
Link copied to clipboard
Set 3D model visibility
Link copied to clipboard
Set 3D model "zoom from" value, dictating from which zoom level the 3D model should start being shown
Link copied to clipboard
Set 3D model "zoom to" value, dictating from which zoom level the 3D 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
open fun setPolygonFillOpacity(@FloatRange(from = 0.0, to = 1.0) opacity: Float): MPDisplayRuleOptions
Set polygon fill opacity (0.0 = invisible, 1.
Link copied to clipboard
open fun setPolygonLightnessFactor(@FloatRange(from = "-1.0", to = 1.0) lightnessFactor: Float): MPDisplayRuleOptions
Set polygon Lightness Factor (-1.0 = Dark, 0.0 no lighting added, 1.
Link copied to clipboard
Set polygon stroke color
Set polygon stroke color (hex color code e.g.
Link copied to clipboard
open fun setPolygonStrokeOpacity(@FloatRange(from = 0.0, to = 1.0) opacity: Float): MPDisplayRuleOptions
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
Get 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
open fun setWallLightnessFactor(@FloatRange(from = "-1.0", to = 1.0) lightnessFactor: Float): MPDisplayRuleOptions
Set Wall Lightness Factor (-1.0 = Dark, 0.0 no lighting added, 1.
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.
Link copied to clipboard
Set the "zoom to" value.