@kognifai/cogsengine
    Preparing search index...

    Class TileLayerView

    Draw 2D Map files for online maps. Supports WMS and WMTS tile formats.

    Index

    Constructors

    Properties

    camera: Camera
    cameraController: OrbitingCameraController
    cogsControl: Control
    lastRenderTime: number
    mapLodLevel: number
    mapRootLodLevel: number
    mapViewBox: MapViewBox

    hashmap with the four corners of the visible area (lowerLeft etc)

    mapViewBoxChangedCallbacks: ViewBoxChangedCallbacks[]
    mode2d: boolean

    if set to true, all tiles will be displayed with same lod and we assume orthographic camera viewing directly down at tiles.

    quadTreeOutlineEntity: LineShape
    renderQuadTree: () => void
    requestDict: Record<string, boolean>

    hashmap with tileId we are requesting

    resizeCallback: () => void
    tileCache: Record<string, TileCacheEntry>

    dictionary with tildIdString as key and TileCacheEntry as value

    tileLoadedCallback: () => void
    tileMeshes: Mesh[][]
    tilesInUse: Record<string, boolean>

    hashmap with tileId of tiles in use by current quadtree

    transparency: number
    updateLodAndViewRect: () => void
    viewProjMat: mat4
    viewRectEntity: LineShape
    visible: boolean
    zPos: number

    Methods

    • Returns void

    • Parameters

      • tilesInUse: Record<string, boolean>

      Returns void

    • Initialize to prepare for rendering.

      Returns void

    • Returns void

    • cleanup: Remove all entities in map

      Returns void

    • Parameters

      • visible: boolean

      Returns void

    • Parameters

      • show: boolean

      Returns void

    • Parameters

      • show: boolean

      Returns void

    • Parameters

      • sceneHeight: number

      Returns void

    • Parameters

      • sceneHeight: number

      Returns void