new RgbTerrain(nameopt, optionsopt)
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | string | <optional> | "RgbTerrain" | Terrain provider name. | ||||||||||||||||||||||||||||||
options | IRgbTerrainParams | <optional> | Provider options: Properties
|
- Source
Extends
Methods
(protected) _applyElevationsData()
- Overrides
- Source
_createHeights() → {Array.<number>|TypedArray}
Converts loaded data to segment elevation data type(column major elevation data array in meters)
- Overrides
- Source
Column-major elevation data array in meters.
- Type:
- Array.<number> |
TypedArray
(protected) _createUrl(segment) → {string}
Creates default query url string.
| Name | Type | Description |
|---|---|---|
segment | Segment | Segment to create URL for. |
- Overrides
- Source
URL string.
- Type:
- string
(protected) _getHTTPRequestString(segment) → {string}
Returns actual url query string.
| Name | Type | Description |
|---|---|---|
segment | Segment | Segment that loads terrain data. |
- Overrides
- Source
URL string.
- Type:
- string
abortLoading()
Stop loading.
- Overrides
- Source
handleSegmentTerrain(segment)
Loads or creates segment elevation data.
| Name | Type | Description |
|---|---|---|
segment | Segment | Segment to create elevation data. |
- Overrides
- Source
loadTerrain(segment, forceLoadingopt)
Starts to load segment elevation data.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
segment | Segment | Segment that requests terrain data. | ||
forceLoading | boolean | <optional> | false | Forces loading even if default filter would skip it. |
- Overrides
- Source
setName(name)
Sets provider name.
| Name | Type | Description |
|---|---|---|
name | string | Name. |
- Overrides
- Source
setUrl(url)
Sets terrain data url template.
| Name | Type | Description |
|---|---|---|
url | string | Url template. |
- Overrides
- Source
<caption>Default openglobus url template:</caption>:
"https://{s}.srtm3.openglobus.org/{z}/{y}/{x}.ddm"setUrlRewriteCallback(ur)
Sets url rewrite callback, used for custom url rewriting for every tile loading.
| Name | Type | Description |
|---|---|---|
ur | UrlRewriteFunc | The callback that returns tile custom created url. |
- Overrides
- Source