Class

XYZTileNode

XYZTileNode(x, y, z, parent)

Constructor

# new XYZTileNode(x, y, z, parent)

A tree structure to hold slippy tiles, and their 3d meshes. A node in a tree of slippy tiles. Each node has up to 4 children. The children have a z index of one more than the parent. The constructor takes the arguments x,y, z, and and optional parent.
Parameters:
Name Type Description
x Number
y Number
z Number
parent XYZTileNode

View Source XYZTileNode.js, line 31

Methods

# getBounds() → {LatLngBounds}

Get bounds for this node.

View Source XYZTileNode.js, line 140

LatLngBounds

# getChildren() → {Array}

Get all the children of this node

View Source XYZTileNode.js, line 391

[XYZTileNode, XYZTileNode, ...]
Array

# async getElevation() → {DataSet}

Get the elevation Dataset for this node.

View Source XYZTileNode.js, line 120

DataSet

# getLeafNodes() → {Array}

View Source XYZTileNode.js, line 262

[XYZTileNode, XYZTileNode, ...]
Array

# async getMartiniMesh(martiniError) → {Object}

Get TIN from martini mesh
Parameters:
Name Type Default Description
martiniError Number 0.1

View Source XYZTileNode.js, line 150

martini mesh
Object

# getNodeByID(id) → {XYZTileNode}

Parameters:
Name Type Description
id String

View Source XYZTileNode.js, line 87

return the node with the given id, or undefined.
XYZTileNode

# getNonLeafNodes() → {Array}

View Source XYZTileNode.js, line 278

[XYZTileNode, XYZTileNode, ...]
Array

# async getTerrainMesh(martiniError, homeMatrix, material) → {THREE.Mesh}

Create and update the 3d mesh for this node.
Parameters:
Name Type Description
martiniError Number
homeMatrix THREE.Matrix4
material THREE.Material

View Source XYZTileNode.js, line 187

THREE.Mesh

# removeNode(node)

Remove a node from the tree.
Parameters:
Name Type Description
node XYZTileNode

View Source XYZTileNode.js, line 314

# split() → {Array}

Get all the children of this node, and create them if they don't exist.

View Source XYZTileNode.js, line 302

[XYZTileNode, XYZTileNode, XYZTileNode, XYZTileNode]
Array