Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TileGeometryCreator

Support class to create geometry for a Tile from a {@link @here/harp-datasource-protocol#DecodedTile}.

internal

Hierarchy

  • TileGeometryCreator

Index

Accessors

Static instance

Methods

createAllGeometries

  • Called after the Tile has been decoded. It is required to call initDecodedTile before calling this method.

    see

    [[TileGeometryCreator#initDecodedTile]]

    Parameters

    • tile: Tile

      The Tile to process.

    • decodedTile: DecodedTile

      The decodedTile containing the actual tile map data.

    Returns Promise<void>

    Promise resolved when all textures are ready to render.

createLabelRejectionElements

createObjects

  • createObjects(tile: Tile, decodedTile: DecodedTile, onTextureCreated: (texture: Promise<Texture>) => void, techniqueFilter?: undefined | ((technique: IndexedTechnique) => boolean)): void
  • Creates Tile objects from the decoded tile and list of materials specified.

    Parameters

    • tile: Tile

      The Tile to create the geometry on.

    • decodedTile: DecodedTile

      The {@link @here/harp-datasource-protocol#DecodedTile}.

    • onTextureCreated: (texture: Promise<Texture>) => void

      Callback for each texture created, getting a promise that will be resolved once the texture is loaded. Texture is not uploaded to GPU.

        • (texture: Promise<Texture>): void
        • Parameters

          • texture: Promise<Texture>

          Returns void

    • Optional techniqueFilter: undefined | ((technique: IndexedTechnique) => boolean)

      -: Optional filter. Should return true for any technique that is applicable.

    Returns void

createTextElements

initDecodedTile

preparePois

prepareTextPaths

processTechniques

Generated using TypeDoc