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 tileconst tile = tileStore.getTile(id); Copy
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 tileconst tile = tileStore.getTile(id);
input data may be WM or S2 as a Feature or a Collection of Features
Optional
options to define how to store the data
the tile id to acquire
Tile Store
Description
TileStore Class is a tile-lookup system that splits and simplifies as needed for each tile request
Usage