Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapRenderingManager

The implementation of IMapRenderingManager to instantiate in MapView and manage the map rendering.

Hierarchy

  • MapRenderingManager

Implements

Index

Constructors

constructor

  • The constructor of MapRenderingManager.

    Parameters

    • width: number

      Width of the frame buffer.

    • height: number

      Height of the frame buffer.

    • lowResPixelRatio: number | undefined

      The pixelRatio determines the resolution of the internal WebGLRenderTarget. Values between 0.5 and window.devicePixelRatio can be tried to give good results. A value of undefined disables the low res render pass. The value should not be larger thanwindow.devicePixelRatio.

    • Default value antialiasSettings: IMapAntialiasSettings | undefined = { msaaEnabled: false }

    Returns MapRenderingManager

Accessors

dynamicMsaaSamplingLevel

lowResPixelRatio

  • get lowResPixelRatio(): number | undefined
  • set lowResPixelRatio(pixelRatio: number | undefined): void
  • The lowResPixelRatio determines the resolution of the internal WebGLRenderTarget. Values between 0.5 and window.devicePixelRatio can be tried to give good results. A value of undefined disables the low res render pass. The value should not be larger than window.devicePixelRatio.

    Returns number | undefined

  • The lowResPixelRatio determines the resolution of the internal WebGLRenderTarget. Values between 0.5 and window.devicePixelRatio can be tried to give good results. A value of undefined disables the low res render pass. The value should not be larger than window.devicePixelRatio.

    Parameters

    • pixelRatio: number | undefined

    Returns void

msaaEnabled

  • get msaaEnabled(): boolean
  • set msaaEnabled(value: boolean): void

staticMsaaSamplingLevel

Methods

render

  • render(renderer: WebGLRenderer, scene: Scene, camera: PerspectiveCamera | OrthographicCamera, isStaticFrame: boolean): void
  • The method to call to render the map with the MapRenderingManager instance. It contains the chain of sub-passes that can transfer the write and read buffers, and other sheer rendering conditions as disabling AA when a high DPI device is in use.

    Parameters

    • renderer: WebGLRenderer

      The ThreeJS WebGLRenderer instance to render the map with.

    • scene: Scene

      The ThreeJS Scene instance containing the map objects to render.

    • camera: PerspectiveCamera | OrthographicCamera

      The ThreeJS Camera instance to render the scene through.

    • isStaticFrame: boolean

      Whether the frame to render is static or dynamic. Selects level of antialiasing.

    Returns void

setSize

  • setSize(width: number, height: number): void

updateOutline

  • updateOutline(options: { color: string; ghostExtrudedPolygons: boolean; thickness: number }): void

Object literals

bloom

bloom: object

enabled

enabled: boolean = false

radius

radius: number = 0.4

strength

strength: number = 1.5

threshold

threshold: number = 0.85

outline

outline: object

color

color: string = "#000000"

enabled

enabled: boolean = false

ghostExtrudedPolygons

ghostExtrudedPolygons: boolean = false

needsUpdate

needsUpdate: boolean = false

thickness

thickness: number = 0.005

sepia

sepia: object

amount

amount: number = 0.5

enabled

enabled: boolean = false

vignette

vignette: object

darkness

darkness: number = 1

enabled

enabled: boolean = false

offset

offset: number = 1

Generated using TypeDoc