@nika-js/onlymap 0.8.2 → 0.8.4

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE.md +2 -0
  3. package/README.md +8 -0
  4. package/dist/{LercDecode.es-BSylOuVc.js → LercDecode.es-BKustV-1.js} +1 -1
  5. package/dist/{basemap-CMaYhtEE.js → basemap-B0SwrOqQ.js} +784 -780
  6. package/dist/basemap.d.ts +2 -0
  7. package/dist/cartograph/elements/om-cartograph.d.ts +6 -0
  8. package/dist/cartograph/elements/om-frame.d.ts +12 -9
  9. package/dist/cartograph/georef.d.ts +11 -1
  10. package/dist/cartograph/graticule.d.ts +1 -1
  11. package/dist/cartograph/live-frame.d.ts +17 -18
  12. package/dist/cartograph.js +758 -724
  13. package/dist/cartograph.standalone.js +1556 -1522
  14. package/dist/elements/om-map.d.ts +13 -0
  15. package/dist/{geoparquet-DZjsJtQQ.js → geoparquet-C5E6N6G0.js} +1 -1
  16. package/dist/{index-tSk19VJe.js → index-BLIjrGOE.js} +1 -1
  17. package/dist/{index-BQkmbcQr.js → index-BnQDfKfE.js} +1 -1
  18. package/dist/{index-DRFEoCuu.js → index-CaM1C93G.js} +1 -1
  19. package/dist/{index-Cw9SL11B.js → index-D5Fqn_eZ.js} +8921 -8870
  20. package/dist/{index-Dl0UKZF-.js → index-xUVMTGZG.js} +2 -2
  21. package/dist/index.d.ts +5 -3
  22. package/dist/{lerc-Dphd_hZG.js → lerc-TxsFLMlC.js} +2 -2
  23. package/dist/license.d.ts +46 -1
  24. package/dist/onlymap.standalone.js +15136 -15081
  25. package/dist/onlymapjs.js +78 -76
  26. package/dist/{raster-Bb9CjpGL.js → raster-B_wekCHv.js} +3 -3
  27. package/dist/{raster-pipeline-D_Hw3Wax.js → raster-pipeline-Dn2fkLYx.js} +1 -1
  28. package/dist/runtime-core.d.ts +11 -0
  29. package/dist/version.d.ts +1 -1
  30. package/dist/{zarr-DJA83o9G.js → zarr-Dan2ab-l.js} +2 -2
  31. package/docs/cartograph.md +8 -0
  32. package/llms.txt +2 -2
  33. package/onlymapjs.html-data.json +12 -0
  34. package/package.json +3 -3
  35. package/skills/onlymapjs/SKILL.md +1 -1
  36. package/skills/onlymapjs/references/syntax.md +4 -4
package/CHANGELOG.md CHANGED
@@ -8,6 +8,24 @@ Note: npm collapsed a few closely-spaced releases — the GPX/FlatGeobuf (0.5.4)
8
8
  and GeoParquet (0.5.5) work shipped to npm together as **0.5.6**, so npm's
9
9
  version list jumps 0.5.3 → 0.5.6. Each logical version is listed here regardless.
10
10
 
11
+ ## 0.8.4 — 2026-09-21
12
+
13
+ ### Added
14
+ - **Keep the OnlyMap badge on a paid plan, if you want to.** Removing the attribution badge is something a commercial license *permits*, not something it requires — so `keep-badge` on `<om-map>` (or `OmMap.setKeepBadge(true)`) lifts the free-tier limits while still crediting OnlyMap. The badge then shows the credit without the "free for non-commercial use" sentence, which wouldn't describe a paid deployment. It has no effect on the free plan, where the badge is the license condition rather than a preference. The setting is page-level and can be changed after load; a cartograph's foot credit follows it, and `<om-cartograph keep-badge>` opts a print sheet in on its own.
15
+
16
+ ## 0.8.3 — 2026-09-18
17
+
18
+ ### Fixed
19
+ - **A cartograph frame zoomed far out now shows the world wrapping, like any web map, instead of an error.** Zoom out far enough and a frame covers more than the whole world; it used to give up at that point — no scale bar, north arrow, graticule or export, just an error note over the map. The frame now follows the map wherever it goes: the world repeats inside it, the graticule labels each copy correctly, and the scale bar measures the row it sits on. Nothing about the camera is changed or limited.
20
+ - **The north arrow, scale bar, graticule and locator inset now follow the map inside a frame.** Pan, rotate or tilt a live frame's map and, as soon as it settles, everything that describes that frame updates to the view on screen — the compass points at true north for what you're actually looking at, not for the camera the document was saved with. Freezing a frame captures that same view, so a frozen frame keeps the correct north too.
21
+ - **Cartographs saved zoomed-out or steeply tilted open and work again.** Documents that used to open onto an error render as authored, and the file is left exactly as it is.
22
+
23
+ ### Changed
24
+ - **A frame no longer caps the tilt of the map inside it.** 0.8.1 introduced that cap, computed from the frame's shape; the underlying problem was the frame refusing views it could have handled, which is now fixed at the source. `max-pitch` on `<om-map>` remains as an author-set control.
25
+
26
+ ### Added
27
+ - **`min-zoom` on `<om-map>`** floors how far a map can be zoomed out, the companion to `max-pitch`. Useful for keeping a kiosk or embedded map within its intended area. Neither is applied automatically.
28
+
11
29
  ## 0.8.2 — 2026-09-18
12
30
 
13
31
  ### Fixed
package/LICENSE.md CHANGED
@@ -35,6 +35,8 @@ The Software is commercial proprietary software.
35
35
 
36
36
  **Commercial use.** Any use other than Non-Commercial Use requires a purchased and maintained valid commercial license from Licensor, unless Licensor has granted Licensee a separate written license.
37
37
 
38
+ **Attribution removal is a permission, not an obligation.** A valid commercial license permits Licensee to remove the Software's on-map attribution; it does not require removal. Licensee may keep the attribution displayed (`keep-badge`, or `OmMap.setKeepBadge(true)`), in which case the Software renders the credit without the Non-Commercial notice, since that notice would not describe Licensee's use.
39
+
38
40
  **Technical limits are a convenience, not the grant.** The Software may enforce technical limits in some execution contexts and not others (for example, limits may be inactive during local development, when loaded from local files, or inside application shells). The presence, absence, or failure of any technical limit does not grant, extend, or modify any license right. In particular, distributing the Software inside a packaged or installable application (desktop, mobile, or otherwise), or any other Commercial use, requires a valid commercial license under this Section 3 regardless of whether technical limits were active.
39
41
 
40
42
  Access to an npm package, repository, package tarball, source archive, or build artifact does not by itself grant any rights beyond the rights expressly granted in this Agreement.
package/README.md CHANGED
@@ -333,6 +333,14 @@ A license key lifts all limits and removes the badge:
333
333
  OmMap.configureLicense("om_live_…"); // or once, in code
334
334
  ```
335
335
 
336
+ Removing the badge is a **permission, not a requirement** — if you'd rather keep crediting OnlyMap on a paid plan, `keep-badge` opts back in, and the badge then renders the credit *without* the "free for non-commercial use" sentence, which wouldn't describe your deployment:
337
+
338
+ ```html
339
+ <om-map license-key="om_live_…" keep-badge> <!-- or OmMap.setKeepBadge(true) -->
340
+ ```
341
+
342
+ It has no effect on the free plan, where the badge is the license condition rather than a preference. The setting is page-level — a print sheet's foot credit follows it too, and `<om-cartograph keep-badge>` opts one in on its own (a static sheet has no map runtime to carry the key).
343
+
336
344
  Packaged native hosts can verify an app-scoped key by passing platform-derived identity:
337
345
 
338
346
  ```ts
@@ -19,7 +19,7 @@ async function v(N = {}) {
19
19
  if (n) {
20
20
  const { createRequire: I } = await import(
21
21
  /*webpackIgnore:true*/
22
- "./lerc-Dphd_hZG.js"
22
+ "./lerc-TxsFLMlC.js"
23
23
  ).then((g) => g._);
24
24
  var O = I(import.meta.url);
25
25
  }