EmptyTerrain

Class represents terrain provider without elevation data.

Constructor

new EmptyTerrain(optionsopt, gridSizeByZoomopt)

Parameters:
NameTypeAttributesDescription
optionsIEmptyTerrainParams<optional>

Provider options:

Properties
NameTypeAttributesDefaultDescription
namestring<optional>
"empty"

Provider name.

equalizeVerticesboolean<optional>
minZoomnumber<optional>
2

Minimal visible zoom index when terrain handler works.

minZoomnumber<optional>
50

Maximal visible zoom index when terrain handler works.

maxNativeZoomnumber<optional>
19

Maximal available terrain zoom level.

gridSizeByZoomArray.<number><optional>

Array of segment triangulation grid sizes where array index agreed to the segment zoom index.

gridSizeByZoomArray.<number><optional>

Array of values, where each value corresponds to the size of a tile(or segment) on the globe. Each value must be power of two.

options.geoidGeoid<optional>
options.geoidSrcstring<optional>

Methods

handleSegmentTerrain(segment)

Loads or creates segment elevation data.

Parameters:
NameTypeDescription
segmentSegment

Segment to create elevation data.

setUrlRewriteCallback(ur)

Sets url rewrite callback, used for custom url rewriting for every tile loading.

Parameters:
NameTypeDescription
urUrlRewriteFunc

The callback that returns tile custom created url.