spacemap 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -12
- package/dist/spacemap.iife.js +670 -233
- package/dist/spacemap.js +670 -233
- package/index.d.ts +60 -28
- package/index.js +2645 -841
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,14 +16,15 @@ The code is MPL-2.0. The data and imagery the map fetches keep the terms of
|
|
|
16
16
|
their sources, which is why the credit line the map draws is not removable:
|
|
17
17
|
these license require attribution.
|
|
18
18
|
|
|
19
|
-
Every surface map and
|
|
20
|
-
what a page may use:
|
|
19
|
+
Every surface map, panorama and spacecraft model is ranked by its terms, and
|
|
20
|
+
the SDK draws only what a page may use:
|
|
21
21
|
|
|
22
|
-
- **Open** imagery
|
|
23
|
-
and all a map draws unless asked otherwise.
|
|
24
|
-
- **Non-commercial** imagery
|
|
25
|
-
use: the Uranus map,
|
|
26
|
-
|
|
22
|
+
- **Open** imagery and models are free for any use, commercial included. They
|
|
23
|
+
are the default and all a map draws unless asked otherwise.
|
|
24
|
+
- **Non-commercial** imagery and models are licensed for educational and
|
|
25
|
+
non-commercial use: the Uranus map, the Huygens descent panorama of Titan,
|
|
26
|
+
and the models of a few craft, most of them Soviet (Buran, Vostok, Lunokhod,
|
|
27
|
+
Salyut 1). A page that is not commercial turns them on:
|
|
27
28
|
|
|
28
29
|
```js
|
|
29
30
|
const map = await createMap({ container: '#map', includeNonCommercial: true });
|
|
@@ -31,7 +32,9 @@ what a page may use:
|
|
|
31
32
|
|
|
32
33
|
Asking for it is accepting its terms, and the credit line naming each author
|
|
33
34
|
is part of those terms. Without the flag Uranus renders in a flat fallback
|
|
34
|
-
colour,
|
|
35
|
+
colour, the Huygens stop is a place on Titan with no panorama to open, and
|
|
36
|
+
those craft stay markers with no model. Mir is the exception: it has an open
|
|
37
|
+
model too, and the map draws that one.
|
|
35
38
|
|
|
36
39
|
- **Site-only** imagery is licensed to spacemap.co alone and never reaches the
|
|
37
40
|
SDK.
|
|
@@ -44,7 +47,7 @@ your page:
|
|
|
44
47
|
```html
|
|
45
48
|
<div id="map" style="height: 500px"></div>
|
|
46
49
|
<script type="module">
|
|
47
|
-
import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.
|
|
50
|
+
import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.14/dist/spacemap.js';
|
|
48
51
|
const map = await createMap({ container: '#map' });
|
|
49
52
|
</script>
|
|
50
53
|
```
|
|
@@ -565,9 +568,9 @@ const view = await createPanorama({ container: '#panorama', body: 'naif-499', at
|
|
|
565
568
|
```
|
|
566
569
|
|
|
567
570
|
The list is every stop on every traverse, and not every stop has a sphere this
|
|
568
|
-
page may open: some are
|
|
569
|
-
|
|
570
|
-
|
|
571
|
+
page may open: some are under a licence the page has not accepted
|
|
572
|
+
(`includeNonCommercial`). `isViewable` says which open; the view skips the rest
|
|
573
|
+
itself.
|
|
571
574
|
|
|
572
575
|
Both read the page's own settings, which a `create…` call applies. A page that
|
|
573
576
|
reads the list before it has made anything applies them itself first, or the
|