spacemap 0.1.13 → 0.1.15

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 CHANGED
@@ -47,7 +47,7 @@ your page:
47
47
  ```html
48
48
  <div id="map" style="height: 500px"></div>
49
49
  <script type="module">
50
- import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.13/dist/spacemap.js';
50
+ import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.15/dist/spacemap.js';
51
51
  const map = await createMap({ container: '#map' });
52
52
  </script>
53
53
  ```
@@ -451,6 +451,22 @@ it straight back.
451
451
  The flat map needs nothing of its own for this: its pictures are layers already,
452
452
  and `addRasterLayer` puts one of yours over or in place of them.
453
453
 
454
+ ### Surface tiles
455
+
456
+ Close up, a body's surface sharpens with tiles fetched around the camera. Some
457
+ maps draw none — on a device short of memory, for one — and every body then
458
+ shows its whole-globe maps alone, which go soft close up:
459
+
460
+ ```js
461
+ map.tilesEnabled(); // false where the map draws no tiles at all
462
+ await map.hasTiles('naif-499'); // whether tiles sharpen Mars up close
463
+ ```
464
+
465
+ `hasTiles` is also false for a body without tiles, one drawn as a shape model
466
+ up close, and one whose tiles could not be fetched. It reads the body's own
467
+ data, so it answers before the camera gets there. A page can use the two to
468
+ limit how far the reader zooms in, or to say that close-up detail is off.
469
+
454
470
  ### Layers
455
471
 
456
472
  What the map draws is a set of layers, each switched by id — the kinds of
@@ -568,9 +584,9 @@ const view = await createPanorama({ container: '#panorama', body: 'naif-499', at
568
584
  ```
569
585
 
570
586
  The list is every stop on every traverse, and not every stop has a sphere this
571
- page may open: some are places the archive withheld the imagery of, and some
572
- are under a licence the page has not accepted (`includeNonCommercial`).
573
- `isViewable` says which open; the view skips the rest itself.
587
+ page may open: some are under a licence the page has not accepted
588
+ (`includeNonCommercial`). `isViewable` says which open; the view skips the rest
589
+ itself.
574
590
 
575
591
  Both read the page's own settings, which a `create…` call applies. A page that
576
592
  reads the list before it has made anything applies them itself first, or the