Class MapRenderingManager

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

Hierarchy

  • MapRenderingManager

Implements

Constructors

  • The constructor of MapRenderingManager.

    Parameters

    • width: number

      Width of the frame buffer.

    • height: number

      Height of the frame buffer.

    • lowResPixelRatio: undefined | number

      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.

    • antialiasSettings: undefined | IMapAntialiasSettings = ...

    Returns MapRenderingManager

Properties

bloom: {
    enabled: boolean;
    radius: number;
    strength: number;
    threshold: number;
} = ...

Bloom effect parameters.

Type declaration

  • enabled: boolean
  • radius: number
  • strength: number
  • threshold: number
outline: {
    color: string;
    enabled: boolean;
    ghostExtrudedPolygons: boolean;
    needsUpdate: boolean;
    thickness: number;
} = ...

Outline effect parameters.

Type declaration

  • color: string
  • enabled: boolean
  • ghostExtrudedPolygons: boolean
  • needsUpdate: boolean
  • thickness: number
sepia: {
    amount: number;
    enabled: boolean;
} = ...

Sepia effect parameters.

Type declaration

  • amount: number
  • enabled: boolean
vignette: {
    darkness: number;
    enabled: boolean;
    offset: number;
} = ...

Vignette effect parameters.

Type declaration

  • darkness: number
  • enabled: boolean
  • offset: number

Accessors

Methods

  • 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

Generated using TypeDoc