Constructor
new EmptyTerrain(optionsopt, gridSizeByZoomopt)
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | IEmptyTerrainParams | <optional> | Provider options: Properties
| |||||||||||||||||||||||||||||||||||
gridSizeByZoom | Array.<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.geoid | Geoid | <optional> | ||||||||||||||||||||||||||||||||||||
options.geoidSrc | string | <optional> |
- Source
Methods
handleSegmentTerrain(segment)
Loads or creates segment elevation data.
Parameters:
Name | Type | Description |
---|---|---|
segment | Segment | Segment to create elevation data. |
- Source
setUrlRewriteCallback(ur)
Sets url rewrite callback, used for custom url rewriting for every tile loading.
Parameters:
Name | Type | Description |
---|---|---|
ur | UrlRewriteFunc | The callback that returns tile custom created url. |
- Source