Class TextElementsRenderer

Internal class to manage all text rendering.

Hierarchy

  • TextElementsRenderer

Constructors

  • Create the TextElementsRenderer which selects which labels should be placed on screen as a preprocessing step, which is not done every frame, and also renders the placed TextElements every frame.

    Parameters

    • m_viewState: ViewState

      State of the view for which this renderer will draw text.

    • m_screenProjector: ScreenProjector

      Projects 3D coordinates into screen space.

    • m_poiManager: PoiManager

      To prepare pois for rendering.

    • m_renderer: WebGLRenderer

      The renderer to be used.

    • m_imageCaches: MapViewImageCache[]

      The Image Caches to look for Icons.

    • options: TextElementsRendererOptions

      Configuration options for the text renderer. See

    • Optional textCanvasFactory: TextCanvasFactory

      Optional A TextCanvasFactory to override the default.

    • Optional poiRenderer: PoiRenderer

      Optional A PoiRenderer to override the default.

    • Optional screenCollisions: ScreenCollisions

      Optional ScreenCollisions to override the default. [[TextElementsRendererOptions]].

    Returns TextElementsRenderer

Accessors

Methods

  • Fill the picking results for the pixel with the given screen coordinate. If multiple TextElements are found, the order of the results is unspecified.

    Note: TextElements with identical featureId or identical userData will only appear once in the list pickResults.

    Parameters

    • screenPosition: Vector2

      Screen coordinate of picking position.

    • pickListener: PickListener

    Returns void

Generated using TypeDoc