A collection of settings that dictate how MapsIndoors entities are displayed on the map.

Export

Hierarchy

  • MPDisplayRule

Constructors

Properties

Methods

getBadgeFillColor getBadgePosition getBadgeRadius getBadgeScale getBadgeStrokeColor getBadgeStrokeWidth getBadgeZoomFrom getBadgeZoomTo getExtrusionColor getExtrusionHeight getExtrusionLightnessFactor getExtrusionZoomFrom getExtrusionZoomTo getIconPlacement getIconScale getIconSize getIconUrl getLabel getLabelMaxWidth getLabelStyleBearing getLabelStyleHaloBlur getLabelStyleHaloColor getLabelStyleHaloWidth getLabelStyleTextColor getLabelStyleTextOpacity getLabelStyleTextSize getLabelType getLabelZoomFrom getLabelZoomTo getModel2DBearing getModel2DHeightMeters getModel2DModel getModel2DWidthMeters getModel2DZoomFrom getModel2DZoomTo getPolygonFillColor getPolygonFillOpacity getPolygonLightnessFactor getPolygonStrokeColor getPolygonStrokeOpacity getPolygonStrokeWidth getPolygonZoomFrom getPolygonZoomTo getWallColor getWallHeight getWallLightnessFactor getWallZoomFrom getWallZoomTo getZoomFrom getZoomTo isBadgeVisible isExtrusionVisible isIconVisible isLabelVisible isModel2DVisible isPolygonVisible isVisible isWallVisible reset setBadgeFillColor setBadgePosition setBadgeRadius setBadgeScale setBadgeStrokeColor setBadgeStrokeWidth setBadgeVisible setBadgeZoomFrom setBadgeZoomTo setExtrusionColor setExtrusionHeight setExtrusionLightnessFactor setExtrusionVisible setExtrusionZoomFrom setExtrusionZoomTo setIcon setIconPlacement setIconScale setIconSize setIconVisible setLabel setLabelMaxWidth setLabelStyleBearing setLabelStyleHaloBlur setLabelStyleHaloColor setLabelStyleHaloWidth setLabelStyleTextColor setLabelStyleTextOpacity setLabelStyleTextSize setLabelType setLabelVisible setLabelZoomFrom setLabelZoomTo setModel2DBearing setModel2DHeightMeters setModel2DModel setModel2DVisible setModel2DWidthMeters setModel2DZoomFrom setModel2DZoomTo setPolygonFillColor setPolygonFillOpacity setPolygonLightnessFactor setPolygonStrokeColor setPolygonStrokeOpacity setPolygonStrokeWidth setPolygonVisible setPolygonZoomFrom setPolygonZoomTo setVisible setWallColor setWallHeight setWallLightnessFactor setWallVisible setWallZoomFrom setWallZoomTo setZoomFrom setZoomTo create

Constructors

  • Private

    Creates an instance of MPDisplayRule.

    Parameters

    • id: string

    Returns MPDisplayRule

Properties

id: string

Methods

  • Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<number>

  • Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<number>

  • Returns Promise<number>

  • Get the extrusion's color value.

    Returns Promise<string>

    Async

  • Get the extrusion's height value.

    Returns Promise<number>

    Async

  • Returns Promise<number>

  • Get the extrusion's zoom from value.

    Returns Promise<number>

    Async

  • Get the extrusion's zoom to value.

    Returns Promise<number>

    Async

  • Returns Promise<number>

  • Get the icon's size.

    Returns Promise<MPIconSize>

    Async

  • Get the icon's URL.

    Returns Promise<string>

    Async

  • Get the label string.

    Returns Promise<string>

    Async

  • Get the label's max width value.

    Returns Promise<number>

    Async

  • Returns Promise<number>

  • Returns Promise<number>

  • Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<string>

  • Returns Promise<number>

  • Returns Promise<number>

  • Get the label's zoom from value.

    Returns Promise<number>

    Async

  • Get the label's zoom to value.

    Returns Promise<number>

    Async

  • Get the 2D model's bearing value.

    Returns Promise<number>

    Async

  • Get the 2D model's height in meters.

    Returns Promise<number>

    Async

  • Get the 2D model's URL.

    Returns Promise<string>

    Async

  • Get the 2D model's width in meters.

    Returns Promise<number>

    Async

  • Get the 2D model's zoom from value.

    Returns Promise<number>

    Async

  • Get the 2D model's zoom to value.

    Returns Promise<number>

    Async

  • Get the polygon's fill color value.

    Returns Promise<string>

    Async

  • Get the polygon's fill opacity value.

    Returns Promise<number>

    Async

  • Returns Promise<number>

  • Get the polygon's stroke color value.

    Returns Promise<string>

    Async

  • Get the polygon's stroke opacity value.

    Returns Promise<number>

    Async

  • Get the polygon's stroke width value.

    Returns Promise<number>

    Async

  • Get the plygon's zoom from value.

    Returns Promise<number>

    Async

  • Get the polygon's zoom to value.

    Returns Promise<number>

    Async

  • Get the wall's color value.

    Returns Promise<string>

    Async

  • Get the wall's height value.

    Returns Promise<number>

    Async

  • Returns Promise<number>

  • Get the wall's zoom from value.

    Returns Promise<number>

    Async

  • Get the wall's zoom to value.

    Returns Promise<number>

    Async

  • Get the general zoom from value.

    Returns Promise<number>

    Async

  • Get the general zoom to value.

    Returns Promise<number>

    Async

  • Returns Promise<boolean>

  • Get the extrusion's visibility value.

    Returns Promise<boolean>

    Async

  • Get the icon's visibility value.

    Returns Promise<boolean>

    Async

  • Get the label's visibility value.

    Returns Promise<boolean>

    Async

  • Get the 2D model's visibility value.

    Returns Promise<boolean>

    Async

  • Get the polygon's visibility value.

    Returns Promise<boolean>

    Async

  • Get the general visibility value.

    Returns Promise<boolean>

    Async

  • Get the wall's visibility value.

    Returns Promise<boolean>

    Async

  • Resets the display rule to its default state.

    Returns Promise<void>

    Async

  • Parameters

    • fillColor: string

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Parameters

    • radius: number

    Returns Promise<void>

  • Parameters

    • badgeScale: number

    Returns Promise<void>

  • Parameters

    • strokeColor: string

    Returns Promise<void>

  • Parameters

    • strokeWidth: number

    Returns Promise<void>

  • Parameters

    • visible: boolean

    Returns Promise<void>

  • Parameters

    • zoomFrom: number

    Returns Promise<void>

  • Parameters

    • zoomTo: number

    Returns Promise<void>

  • Set the extrusion's color value.

    Parameters

    • extrusionColor: string

    Returns Promise<void>

    Async

  • Set the extrusion's height value.

    Parameters

    • extrusionHeight: number

    Returns Promise<void>

    Async

  • Parameters

    • lightnessFactor: number

    Returns Promise<void>

  • Set the extrusion's visibility value.

    Parameters

    • extrusionVisible: boolean

    Returns Promise<void>

    Async

  • Set the extrusion's zoom from value.

    Parameters

    • extrusionZoomFrom: number

    Returns Promise<void>

    Async

  • Get the extrusion's zoom to value.

    Parameters

    • extrusionZoomTo: number

    Returns Promise<void>

    Async

  • Set the icon's URL.

    Parameters

    • iconUrl: string

    Returns Promise<void>

    Async

  • Parameters

    Returns Promise<void>

  • Parameters

    • iconScale: number

    Returns Promise<void>

  • Set the icon's size.

    Parameters

    Returns Promise<void>

    Async

  • Set the icon's visibility value.

    Parameters

    • iconVisible: boolean

    Returns Promise<void>

    Async

  • Set the label string.

    Parameters

    • label: string

    Returns Promise<void>

    Async

  • Set the label's max width value.

    Parameters

    • labelMaxWidth: number

    Returns Promise<void>

    Async

  • Parameters

    • bearing: number

    Returns Promise<void>

  • Parameters

    • haloBlur: number

    Returns Promise<void>

  • Parameters

    • color: string

    Returns Promise<void>

  • Parameters

    • haloWidth: number

    Returns Promise<void>

  • Parameters

    • textColor: String

    Returns Promise<void>

  • Parameters

    • textOpacity: number

    Returns Promise<void>

  • Parameters

    • textSize: number

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Set the label's visibility value.

    Parameters

    • labelVisible: boolean

    Returns Promise<void>

    Async

  • Set the label's zoom from value.

    Parameters

    • zoomFrom: number

    Returns Promise<void>

    Async

  • Set the label's zoom to value.

    Parameters

    • zoomTo: number

    Returns Promise<void>

    Async

  • Get the 2D model's bearing value.

    Parameters

    • bearing: number

    Returns Promise<void>

    Async

  • Set the 2D model's height in meters.

    Parameters

    • height: number

    Returns Promise<void>

    Async

  • Set the 2D model's URL.

    Parameters

    • url: string

    Returns Promise<void>

    Async

  • Set the 2D model's visibility value.

    Parameters

    • model2DVisible: boolean

    Returns Promise<void>

    Async

  • Set the 2D model's width in meters.

    Parameters

    • width: number

    Returns Promise<void>

    Async

  • Set the 2D model's zoom from value.

    Parameters

    • zoomFrom: number

    Returns Promise<void>

    Async

  • Set the 2D model's zoom to value.

    Parameters

    • zoomTo: number

    Returns Promise<void>

    Async

  • Set the polygon's fill color value.

    Parameters

    • fillColor: string

    Returns Promise<void>

    Async

  • Set the polygon's fill opacity value.

    Parameters

    • fillOpacity: number

    Returns Promise<void>

    Async

  • Parameters

    • lightnessFactor: number

    Returns Promise<void>

  • Set the polygon's stroke color value.

    Parameters

    • strokeColor: string

    Returns Promise<void>

    Async

  • Set the polygon's stroke opacity value.

    Parameters

    • strokeOpacity: number

    Returns Promise<void>

    Async

  • Set the polygon's stroke width value.

    Parameters

    • strokeWidth: number

    Returns Promise<void>

    Async

  • Set the polygon's visibility value.

    Parameters

    • polygonVisible: boolean

    Returns Promise<void>

    Async

  • Get the plygon's zoom from value.

    Parameters

    • polygonZoomFrom: number

    Returns Promise<void>

    Async

  • Set the polygon's zoom to value.

    Parameters

    • polygonZoomTo: number

    Returns Promise<void>

    Async

  • Set the general visibility value.

    Parameters

    • visible: boolean

    Returns Promise<void>

    Async

  • Set the wall's color value.

    Parameters

    • wallColor: string

    Returns Promise<void>

    Async

  • Set the wall's height value.

    Parameters

    • wallHeight: number

    Returns Promise<void>

    Async

  • Parameters

    • lightnessFactor: number

    Returns Promise<void>

  • Set the wall's visibility value.

    Parameters

    • wallVisible: boolean

    Returns Promise<void>

    Async

  • Set the wall's zoom from value.

    Parameters

    • wallZoomFrom: number

    Returns Promise<void>

    Async

  • Set the wall's zoom to value.

    Parameters

    • wallZoomTo: number

    Returns Promise<void>

    Async

  • Set the general zoom from value.

    Parameters

    • zoomFrom: number

    Returns Promise<void>

    Async

  • Set the general zoom to value.

    Parameters

    • zoomTo: number

    Returns Promise<void>

    Async

  • Creator for MPDisplayRule, used to decode JSON from the MapsIndoors SDK.

    This is primarily for internal use, and should not be used outside the SDK.

    Parameters

    • Optional object: any

    Returns MPDisplayRule

    Static

Generated using TypeDoc