gis-tools-ts - v0.6.0
    Preparing search index...

    Class TileStore<M, D, P>

    Tile Store

    TileStore Class is a tile-lookup system that splits and simplifies as needed for each tile request

    import { TileStore } from 'gis-tools-ts';
    const tileStore = new TileStore(data, {
    projection: 'WG',
    minzoom: 0,
    maxzoom: 9,
    indexMaxzoom: 4,
    tolerance: 3,
    buffer: 0.0625
    buildBBox: false
    });

    // get a tile
    const tile = tileStore.getTile(id);

    Type Parameters

    • M = Record<string, unknown>
    • D extends MValue = Properties
    • P extends Properties = Properties
    Index

    Constructors

    Methods

    Constructors

    • Type Parameters

      • M = Record<string, unknown>
      • D extends Properties = Properties
      • P extends Properties = Properties

      Parameters

      • data: JSONCollection<M, D, P>

        input data may be WM or S2 as a Feature or a Collection of Features

      • Optionaloptions: TileStoreOptions

        options to define how to store the data

      Returns TileStore<M, D, P>

    Methods

    • Parameters

      • id: bigint

        the tile id to acquire

      Returns undefined | Tile<M, D, P>

      • the tile if it exists