spacemap 0.1.24 → 0.1.25

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
@@ -41,7 +41,7 @@ your page:
41
41
  ```html
42
42
  <div id="map" style="height: 500px"></div>
43
43
  <script type="module">
44
- import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.24/dist/spacemap.js';
44
+ import { createMap } from 'https://cdn.jsdelivr.net/npm/spacemap@0.1.25/dist/spacemap.js';
45
45
  const map = await createMap({ container: '#map' });
46
46
  </script>
47
47
  ```
@@ -797,6 +797,7 @@ const map = await createMap({
797
797
 
798
798
  map.setLimits({ maxDistanceKm: 1e6 }); // replaced whole, not merged
799
799
  map.getLimits();
800
+ map.getClosestApproach(); // { groundKm, clearanceKm }: the ground under the camera, and how near it may come
800
801
  ```
801
802
 
802
803
  On the flat map it is a zoom range and a band the middle of the frame stays in: