Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapViewFog

Manages the fog display in MapView.

Hierarchy

  • MapViewFog

Index

Constructors

Accessors

Methods

Constructors

constructor

Accessors

enabled

  • get enabled(): boolean
  • set enabled(enableFog: boolean): void
  • Returns the current fog status, enabled or disabled.

    Returns boolean

  • Allows for disabling the fog, even if it is defined in the theme. Use this property for custom views like the demo app's debug camera. However, if the theme does not define a fog, enabling this property here has no effect.

    Parameters

    • enableFog: boolean

    Returns void

Methods

reset

  • reset(fog?: Fog): void
  • Sets the fog depending on the {@link @here/harp-datasource-protocol#Theme} instance provided. This function is called when a theme is loaded. Fog is added only if the theme contains a fog definition with a:

    • color property, used to set the fog color.
    • startRatio property, used to set the start distance of the fog as a ratio of the far clipping plane distance.

    Parameters

    • Optional fog: Fog

    Returns void

update

  • update(mapView: MapView, viewDistance?: undefined | number): void

Generated using TypeDoc