Skip to content

Commit

Permalink
Merge pull request #10 from NASA-AMMOS/development
Browse files Browse the repository at this point in the history
1.0.3
  • Loading branch information
tariqksoliman authored Sep 1, 2021
2 parents b79cde2 + 7e017be commit b864679
Show file tree
Hide file tree
Showing 41 changed files with 2,360 additions and 284 deletions.
2,206 changes: 2,205 additions & 1 deletion dist/lithosphere.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/src/constants.d.ts

This file was deleted.

Empty file removed dist/src/controls/altitude.d.ts
Empty file.
15 changes: 0 additions & 15 deletions dist/src/controls/compass.d.ts

This file was deleted.

Empty file removed dist/src/controls/controls.d.ts
Empty file.
19 changes: 0 additions & 19 deletions dist/src/controls/coordinates.d.ts

This file was deleted.

Empty file removed dist/src/controls/crop.d.ts
Empty file.
18 changes: 0 additions & 18 deletions dist/src/controls/exaggerate.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions dist/src/controls/home.d.ts

This file was deleted.

29 changes: 0 additions & 29 deletions dist/src/controls/index.d.ts

This file was deleted.

17 changes: 0 additions & 17 deletions dist/src/controls/layers.d.ts

This file was deleted.

29 changes: 0 additions & 29 deletions dist/src/controls/link.d.ts

This file was deleted.

23 changes: 0 additions & 23 deletions dist/src/controls/observe.d.ts

This file was deleted.

16 changes: 0 additions & 16 deletions dist/src/controls/walk.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions dist/src/core/renderer.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/src/core/shaders.d.ts

This file was deleted.

Empty file removed dist/src/layers/curtain.d.ts
Empty file.
Empty file removed dist/src/layers/model.d.ts
Empty file.
Empty file removed dist/src/layers/overlay.d.ts
Empty file.
8 changes: 0 additions & 8 deletions dist/src/layers/tile.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions dist/src/layers/vector.d.ts

This file was deleted.

Empty file removed dist/src/parsers/demt.d.ts
Empty file.
2 changes: 1 addition & 1 deletion dist/src/parsers/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default function load(customParsers: any, tilePath: string, layerObj?: any, xyz?: any, tileResolution?: number, numberOfVertices?: number): Promise<number[]>;
export default function load(customParsers: any, tilePath: string, layerObj?: any, xyz?: any, tileResolution?: number, numberOfVertices?: number, forceParserType?: string): Promise<number[]>;
1 change: 0 additions & 1 deletion dist/src/parsers/rgba.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/src/parsers/tif.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions dist/src/secondary/OrbitControls.d.ts

This file was deleted.

16 changes: 0 additions & 16 deletions dist/src/secondary/PNG/png.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions dist/src/secondary/PNG/zlib.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/src/secondary/PointerLockControls.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions dist/src/secondary/loadingScreen.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions dist/src/secondary/sprites.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion dist/src/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { XY, XYZ } from '../generalTypes';
declare const Utils: {
getIn: (obj: any, keyArray: string[], notSetValue?: any) => any;
getIn: (obj: any, keyArray: any, notSetValue?: any) => any;
mod: (n: number, m: number) => number;
findHighestMaxZoom: (tileLayers: any) => number;
findLowestMinZoom: (tileLayers: any) => number;
Expand Down
23 changes: 23 additions & 0 deletions docs/pages/Constructor/constructor.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ new LithoSphere(containerId, options)
| **minorRadius** | _integer_ | majorRadius | Minor planetary radius in meters |
| **loadingScreen** | _boolean_ | true | If true, shows a loading screen until all lithosphere content first loads |
| **customParsers** | _object_ | See [Parsers]({{ site.baseurl }}/parsers) | Allows the use of custom elevation tile parsers |
| **demFallback** | _object_ | See [demFallback]({{ site.baseurl }}/constructor#optionsdemfallback) below | A DEM to fallback to if any layer's DEM fails |
| **tileMapResource** | _object_ | See [tileMapResource]({{ site.baseurl }}/constructor#optionstilemapresource) below | Configures projections |
| **radiusOfTiles** | _integer_ | 4 | How many tiles outward from the center to use for the base tiles |
| **wireframeMode** | _boolean_ | false | If true, all tiles are rendered with a wireframe material |
Expand Down Expand Up @@ -71,6 +72,28 @@ The latitude, longitude, and zoom LithoSphere first starts at.
}
```

### options.demFallback

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`.

| Parameter | Type | Default | Description |
| :------------: | :------: | :-----: | :-------------------------------: |
| **demPath** | _string_ | | Path for the fallback DEM tiles |
| **format** | _string_ | 'tms' | Tile format: 'tms', 'wmts', 'wms' |
| **parserType** | _string_ | 'rgba' | Which parser to use for demPath |

#### Example

```javascript
{
demFallback: {
demPath:
'https://domain.com/Missions/MSL/Layers/Gale_HiRISE/MSL_Gale_DEM_Mosaic_1m_v3/{z}/{x}/{y}.png',
parserType: 'rgba',
},
}
```

### options.tileMapResource

Representative of the tilemapresource.xml file outputted following tile generation.
Expand Down
Loading

0 comments on commit b864679

Please sign in to comment.