QuadId Class

Identifies a node within a quad tree, such as a MapTile within a MapTileTree. A quad tree recursively sub-divides a two-dimensional space along the X and Y axes such that each node on level L has four child nodes on level L+1.

Methods

Name Description
constructor(level: number, column: number, row: number): QuadId Construct a new QuadId.  
bordersNorthPole(mapTilingScheme: MapTilingScheme): boolean Returns true if this node is adjacent to the north pole according to the specified tiling scheme.  
bordersSouthPole(mapTilingScheme: MapTilingScheme): boolean Returns true if this node is adjacent to the south pole according to the specified tiling scheme.  
compare(other: QuadId): number Compares this Id to another according to the conventions of an OrderedComparator.  
getChildIds(columnCount: number2, rowCount: number2): QuadId[] Compute the QuadIds corresponding to this node's four child nodes.  
getLatLongRangeDegrees(mapTilingScheme: MapTilingScheme): Range2d Compute the region of the surface of the Earth represented by this node according to the specified tiling scheme.  
getLatLongRangeRadians(mapTilingScheme: MapTilingScheme): Range2d Compute the region of the surface of the Earth represented by this node according to the specified tiling scheme.  

Properties

Name Type Description
column number The node's position along the X axis as a non-negative integer.  
level number The level of the node within the tree, increasing with each subdivision, as a non-negative integer.  
row number The node's position along the Y axis as a non-negative integer.  

Defined in

Last Updated: 17 December, 2024