@minmaps-dev/mm-web-sdk 1.0.0-rc.44 → 1.0.0-rc.45
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 +11 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +363 -185
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/jacs.cjs +2 -0
- package/dist/jacs.cjs.map +1 -0
- package/dist/jacs.d.ts +319 -0
- package/dist/jacs.js +2 -0
- package/dist/jacs.js.map +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +5 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Track re-enable points by grepping `// TODO: Re-enable` in `src/sdk.ts` and `src
|
|
|
60
60
|
- **View modes** — toggle 3D extrusion, flat (top-down), and 2D-units modes at runtime.
|
|
61
61
|
- **Camera control** — `setView` / `resetView` / `getCameraPosition`, plus a live `cameraChange` event for compass UIs.
|
|
62
62
|
- **React entrypoint** — drop-in `<MinuteMapsView />` for React 18/19.
|
|
63
|
-
- **
|
|
63
|
+
- **Snapshot, proxy or direct mode** — read published venue snapshots from a CDN (recommended, no credentials), live JACS through a server-side proxy, or JACS directly from trusted environments.
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -217,6 +217,16 @@ CI lives at the **monorepo root** in `.github/workflows/`:
|
|
|
217
217
|
|
|
218
218
|
---
|
|
219
219
|
|
|
220
|
+
## Theme JSON
|
|
221
|
+
|
|
222
|
+
The MapLibre style the SDK renders with is exported as plain JSON, for tools that need the same layer definitions without running the SDK (e.g. the CMS renders floors with OpenLayers from these paint values):
|
|
223
|
+
|
|
224
|
+
```js
|
|
225
|
+
import hybridTheme from '@minmaps-dev/mm-web-sdk/themes/hybrid.json'
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
It is the style the SDK loads by default — runtime sources (`indoor-data`, `poi-data`, …) are empty GeoJSON placeholders that the SDK fills in. The high-contrast theme is derived from it in code and isn't exported as JSON.
|
|
229
|
+
|
|
220
230
|
## Browser + framework support
|
|
221
231
|
|
|
222
232
|
| Target | Version |
|