import FeatureSource, {Tiled} from "../FeatureSource"; import {BBox} from "../../BBox"; export default interface TileHierarchy { /** * A mapping from 'tile_index' to the actual tile featrues */ loadedTiles: Map } export class TileHierarchyTools { public static getTiles(hierarchy: TileHierarchy, bbox: BBox): T[] { const result = [] hierarchy.loadedTiles.forEach((tile) => { if (tile.bbox.overlapsWith(bbox)) { result.push(tile) } }) return result; } }