Tiles drawn from or linked to features. Used to query features and optionally draw tiles from those features.

Hierarchy

  • FeatureTiles

Constructors

Properties

Methods

Constructors

Properties

cacheGeometries: boolean = true

When true, geometries are cached. Default is true

compressFormat: string

Compress format

featureDao: FeatureDao

Tile data access object

featureTableStyles: FeatureTableStyles

Feature Style extension

fillPolygon: boolean

Fill polygon flag

geometryCache: GeometryCache = ...

Geometry Cache

heightOverlap: number

Height overlapping pixels between tile images

indexManager: FeatureIndexManager

When not null, features are retrieved using a feature index

linePaint: Paint = ...

Line paint

lineStrokeWidth: number

Line stroke width

maxFeaturesPerTile: number

Optional max features per tile. When more features than this value exist for creating a single tile, the tile is not created

maxFeaturesTileDraw: CustomFeaturesTile

When not null and the number of features is greater than the max features per tile, used to draw tiles for those tiles with more features than the max

See

CustomFeaturesTile

Optional point icon in place of a drawn circle

pointPaint: Paint = ...

Point paint

pointRadius: number

Point radius

polygonFillPaint: Paint = ...

Polygon fill paint

polygonPaint: Paint = ...

Polygon paint

polygonStrokeWidth: number

Polygon stroke width

projection: Projection

Feature DAO Projection

scale: number = 1.0

Scale factor

simplifyGeometries: boolean = true

When true, geometries are simplified before being drawn. Default is true

tileHeight: number

Tile height

tileWidth: number

Tile height

widthOverlap: number

Width overlapping pixels between tile images

WEB_MERCATOR_PROJECTION: Projection = ...

Web Mercator Projection

WGS_84_PROJECTION: Projection = ...

WGS84 Projection

Methods

  • Adapted from turf's booleanClockwise function to support the LineString GeometryType

    Parameters

    • line: LineString

    Returns boolean

  • Call after making changes to the point icon, point radius, or paint stroke widths. Determines the pixel overlap between tiles

    Returns void

  • Renders the web mercator (EPSG:3857) xyz tile

    Parameters

    • x: number
    • y: number
    • z: number
    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

    Returns Promise<GeoPackageTile>

  • Draw a tile image from the x, y, and zoom level by querying all features. This could be very slow if there are a lot of features

    Returns

    drawn image, or null

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • zoom: number

      zoom level

    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

      (draw directly into a canvas)

    Returns Promise<GeoPackageTile>

  • Draw a tile image from the x, y, and zoom level by querying all features. This could be very slow if there are a lot of features

    Returns

    drawn image, or null

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • zoom: number

      zoom level

    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

      (draw directly into a canvas)

    Returns Promise<GeoPackageTile>

  • Draw a web mercator xyz tile.

    Parameters

    • x: number
    • y: number
    • zoom: number
    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

    Returns Promise<GeoPackageTile>

  • Parameters

    • x: number
    • y: number
    • zoom: number
    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

    Returns Promise<GeoPackageTile>

  • Renders the wgs84 (EPSG:4326) xyz tile

    Parameters

    • x: number
    • y: number
    • z: number
    • Optional canvas: HTMLCanvasElement | OffscreenCanvas | EmulatedCanvas2D

    Returns Promise<GeoPackageTile>

  • Get the path of the line string

    Parameters

    • simplifyTolerance: number
    • boundingBox: BoundingBox
    • transform: GeometryTransform
    • context: any
    • circularString: LineString

    Returns void

  • Gets the count of features for the given xyz tile

    Parameters

    • x: number
    • y: number
    • z: number

    Returns number

  • Gets the count of features for the given xyz tile

    Parameters

    • x: number
    • y: number
    • z: number

    Returns number

  • Get the path of the line string

    Parameters

    • simplifyTolerance: number
    • boundingBox: BoundingBox
    • transform: GeometryTransform
    • context: any
    • lineString: LineString

    Returns void

  • Returns the radius of the 3 points of the arc

    Parameters

    • pointA: Point
    • pointB: Point
    • pointC: Point

    Returns number

  • Handles the generation of a function for transforming coordinates from the source projection into the target tile's projection. These coordinates are then converted into pixel coordinates.

    Parameters

    • projection: Projection

    Returns Function

  • Checks if a circular segment is collinear

    Parameters

    • pointA: Point
    • pointB: Point
    • pointC: Point

    Returns boolean

  • Checks if a circular segment shall be treated as a line segment

    Parameters

    • pointA: Point
    • pointB: Point
    • pointC: Point

    Returns boolean

  • Query for feature result count in the WebMercator x, y, and zoom tile

    Returns

    feature count

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • zoom: number

      zoom level

    Returns number

  • Query for feature result count in the WGS84 x, y, and zoom tile

    Returns

    feature count

    Parameters

    • x: number

      x coordinate

    • y: number

      y coordinate

    • zoom: number

      zoom level

    Returns number

  • Query for feature result count in the bounding box

    Returns

    count

    Parameters

    • boundingBox: BoundingBox

      bounding box

    • projection: Projection

      Projection

    Returns number

  • Set polygon fill color

    Parameters

    • polygonFillColor: string

      polygon fill color

    Returns void

  • Set polygon stroke width

    Parameters

    • polygonStrokeWidth: number

      polygon stroke width

    Returns void

  • When the simplify tolerance is set, simplify the points to a similar curve with fewer points.

    Returns

    simplified points

    Parameters

    • simplifyTolerance: number

      simplify tolerance in meters

    • points: Point[]

      ordered points

    Returns Point[]

Generated using TypeDoc