Custom Feature Tile

Hierarchy

  • CustomFeaturesTile

Implemented by

Methods

  • Draw a tile with the provided text label in the middle

    Returns

    custom image, or null

    Parameters

    • tileWidth: number

      tile width to draw

    • tileHeight: number

      tile height to draw

    • tileFeatureCount: number

      count of features in the requested tile

    • featureIndexResults: FeatureIndexResults

      feature index results

    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

      canvas to draw in

    Returns Promise<GeoPackageTile>

  • Draw a custom tile when the number of features within the tile is unknown. This is called when a feature table is not indexed and more total features exist than the max per tile.

    Returns

    custom image, or null

    Parameters

    • tileWidth: number

      tile width to draw

    • tileHeight: number

      tile height to draw

    • totalFeatureCount: number

      count of total features in the feature table

    • allFeatureResults: FeatureResultSet

      results in a feature result set

    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

      canvas to draw in

    Returns Promise<GeoPackageTile>

Generated using TypeDoc