Skip to content

Commit b864679

Browse files
Merge pull request #10 from NASA-AMMOS/development
1.0.3
2 parents b79cde2 + 7e017be commit b864679

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2360
-284
lines changed

dist/lithosphere.js

Lines changed: 2205 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/constants.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/src/controls/altitude.d.ts

Whitespace-only changes.

dist/src/controls/compass.d.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

dist/src/controls/controls.d.ts

Whitespace-only changes.

dist/src/controls/coordinates.d.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

dist/src/controls/crop.d.ts

Whitespace-only changes.

dist/src/controls/exaggerate.d.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

dist/src/controls/home.d.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

dist/src/controls/index.d.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

dist/src/controls/layers.d.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

dist/src/controls/link.d.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

dist/src/controls/observe.d.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

dist/src/controls/walk.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

dist/src/core/renderer.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

dist/src/core/shaders.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/src/layers/curtain.d.ts

Whitespace-only changes.

dist/src/layers/model.d.ts

Whitespace-only changes.

dist/src/layers/overlay.d.ts

Whitespace-only changes.

dist/src/layers/tile.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

dist/src/layers/vector.d.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

dist/src/parsers/demt.d.ts

Whitespace-only changes.

dist/src/parsers/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default function load(customParsers: any, tilePath: string, layerObj?: any, xyz?: any, tileResolution?: number, numberOfVertices?: number): Promise<number[]>;
1+
export default function load(customParsers: any, tilePath: string, layerObj?: any, xyz?: any, tileResolution?: number, numberOfVertices?: number, forceParserType?: string): Promise<number[]>;

dist/src/parsers/rgba.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/src/parsers/tif.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/src/secondary/OrbitControls.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/src/secondary/PNG/png.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

dist/src/secondary/PNG/zlib.d.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

dist/src/secondary/PointerLockControls.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/src/secondary/loadingScreen.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/src/secondary/sprites.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

dist/src/utils/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { XY, XYZ } from '../generalTypes';
22
declare const Utils: {
3-
getIn: (obj: any, keyArray: string[], notSetValue?: any) => any;
3+
getIn: (obj: any, keyArray: any, notSetValue?: any) => any;
44
mod: (n: number, m: number) => number;
55
findHighestMaxZoom: (tileLayers: any) => number;
66
findLowestMinZoom: (tileLayers: any) => number;

docs/pages/Constructor/constructor.markdown

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ new LithoSphere(containerId, options)
3535
| **minorRadius** | _integer_ | majorRadius | Minor planetary radius in meters |
3636
| **loadingScreen** | _boolean_ | true | If true, shows a loading screen until all lithosphere content first loads |
3737
| **customParsers** | _object_ | See [Parsers]({{ site.baseurl }}/parsers) | Allows the use of custom elevation tile parsers |
38+
| **demFallback** | _object_ | See [demFallback]({{ site.baseurl }}/constructor#optionsdemfallback) below | A DEM to fallback to if any layer's DEM fails |
3839
| **tileMapResource** | _object_ | See [tileMapResource]({{ site.baseurl }}/constructor#optionstilemapresource) below | Configures projections |
3940
| **radiusOfTiles** | _integer_ | 4 | How many tiles outward from the center to use for the base tiles |
4041
| **wireframeMode** | _boolean_ | false | If true, all tiles are rendered with a wireframe material |
@@ -71,6 +72,28 @@ The latitude, longitude, and zoom LithoSphere first starts at.
7172
}
7273
```
7374

75+
### options.demFallback
76+
77+
If a tile layer has a `demPath` set and one of its tile dem request fails for whatever reason (such as a 404) or does not have a `demPath` set, it will try to get the corresponding DEM tile specified in `demFallback`.
78+
79+
| Parameter | Type | Default | Description |
80+
| :------------: | :------: | :-----: | :-------------------------------: |
81+
| **demPath** | _string_ | | Path for the fallback DEM tiles |
82+
| **format** | _string_ | 'tms' | Tile format: 'tms', 'wmts', 'wms' |
83+
| **parserType** | _string_ | 'rgba' | Which parser to use for demPath |
84+
85+
#### Example
86+
87+
```javascript
88+
{
89+
demFallback: {
90+
demPath:
91+
'https://domain.com/Missions/MSL/Layers/Gale_HiRISE/MSL_Gale_DEM_Mosaic_1m_v3/{z}/{x}/{y}.png',
92+
parserType: 'rgba',
93+
},
94+
}
95+
```
96+
7497
### options.tileMapResource
7598

7699
Representative of the tilemapresource.xml file outputted following tile generation.

0 commit comments

Comments
 (0)