@mappedin/mappedin-js 5.26.0 → 5.27.0
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 +44 -44
- package/lib/esm/get-venue/index.d.ts +2793 -0
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.d.ts +343 -0
- package/lib/esm/renderer/GLTFExporter-ZBGZENVY.js +1 -0
- package/lib/esm/renderer/PerformanceController-PXINY5WN.js +1 -0
- package/lib/esm/renderer/{browser-IB3VAYGV.js → browser-YREFO76D.js} +1 -1
- package/lib/esm/renderer/chunk-5HBLJ3LE.js +1 -0
- package/lib/esm/renderer/{chunk-BRR5Y7IV.js → chunk-N5SZS75W.js} +1 -1
- package/lib/esm/renderer/chunk-Y2N5CZKK.js +1 -0
- package/lib/esm/renderer/index.d.ts +651 -457
- package/lib/esm/renderer/index.js +1 -1
- package/lib/esm/renderer/{outdoor-context-SBLADYVI.js → outdoor-context-VPFU5OTZ.js} +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +4 -12
- package/lib/esm/renderer/chunk-2FYSZXWX.js +0 -1
- /package/lib/esm/renderer/{Arrival-4TTHZQOF.js → Arrival-KLIH5LTH.js} +0 -0
- /package/lib/esm/renderer/{Chalet-LUA2Z236.js → Chalet-ZU2FPU2K.js} +0 -0
- /package/lib/esm/renderer/{HelveticaNeue-U3XEZDB5.js → HelveticaNeue-PHK3JE5I.js} +0 -0
- /package/lib/esm/renderer/{Helvetiker-WFBA7C7H.js → Helvetiker-JVUX4WK7.js} +0 -0
- /package/lib/esm/renderer/{Lato-ZI244CQU.js → Lato-BX5JVWZI.js} +0 -0
- /package/lib/esm/renderer/{MyriadPro-XF3IH7EM.js → MyriadPro-3UATSCWU.js} +0 -0
- /package/lib/esm/renderer/{ProximaNova-YIIK4S37.js → ProximaNova-54WAWGUY.js} +0 -0
- /package/lib/esm/renderer/{SimonCircular-NQ53YBIJ.js → SimonCircular-ETZIFPSM.js} +0 -0
package/README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
# Mappedin Web SDK
|
|
2
|
-
|
|
3
|
-
## Resources
|
|
4
|
-
|
|
5
|
-
- [Mappedin Developer Portal](https://developer.mappedin.com)
|
|
6
|
-
- [Releases and Roadmap](https://developer.mappedin.com/releases/)
|
|
7
|
-
- [Getting Started Guide](https://developer.mappedin.com/web-sdk/v5/getting-started/)
|
|
8
|
-
- [API Reference](https://developer.mappedin.com/web-sdk-api/v5/)
|
|
9
|
-
- [Trial Keys](https://developer.mappedin.com/api-keys/)
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
### Installation
|
|
14
|
-
|
|
15
|
-
`npm install @mappedin/mappedin-js`
|
|
16
|
-
|
|
17
|
-
or
|
|
18
|
-
|
|
19
|
-
`yarn add @mappedin/mappedin-js`
|
|
20
|
-
|
|
21
|
-
### Getting Started
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
import { getVenue, showVenue, E_SDK_EVENT } from '@mappedin/mappedin-js';
|
|
25
|
-
import '@mappedin/mappedin-js/lib/index.css';
|
|
26
|
-
|
|
27
|
-
async function init() {
|
|
28
|
-
const venueData = await getVenue({
|
|
29
|
-
clientId: '<clientId>',
|
|
30
|
-
clientSecret: '<clientSecret>',
|
|
31
|
-
venue: '<venue>',
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
const mapView = await showVenue(document.getElementById('mappedin-map'), venueData);
|
|
35
|
-
mapView.FloatingLabels.labelAllLocations();
|
|
36
|
-
mapView.addInteractivePolygonsForAllLocations();
|
|
37
|
-
mapView.on(E_SDK_EVENT.CLICK, ({ polygons }) => {
|
|
38
|
-
console.log(`Polygon with id ${polygons[0].id} clicked!`);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
document.addEventListener('DOMContentLoaded', init);
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
For full documentation, read our [Getting Started guide on the Developer Portal](https://developer.mappedin.com/web-sdk/v5/getting-started/). Developers using React or Angular should follow our [Using React](https://developer.mappedin.com/web-sdk/v5/using-react/) or [Using Angular](https://developer.mappedin.com/web-sdk/v5/using-angular/) guides.
|
|
1
|
+
# Mappedin Web SDK
|
|
2
|
+
|
|
3
|
+
## Resources
|
|
4
|
+
|
|
5
|
+
- [Mappedin Developer Portal](https://developer.mappedin.com)
|
|
6
|
+
- [Releases and Roadmap](https://developer.mappedin.com/releases/)
|
|
7
|
+
- [Getting Started Guide](https://developer.mappedin.com/web-sdk/v5/getting-started/)
|
|
8
|
+
- [API Reference](https://developer.mappedin.com/web-sdk-api/v5/)
|
|
9
|
+
- [Trial Keys](https://developer.mappedin.com/api-keys/)
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Installation
|
|
14
|
+
|
|
15
|
+
`npm install @mappedin/mappedin-js`
|
|
16
|
+
|
|
17
|
+
or
|
|
18
|
+
|
|
19
|
+
`yarn add @mappedin/mappedin-js`
|
|
20
|
+
|
|
21
|
+
### Getting Started
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
import { getVenue, showVenue, E_SDK_EVENT } from '@mappedin/mappedin-js';
|
|
25
|
+
import '@mappedin/mappedin-js/lib/index.css';
|
|
26
|
+
|
|
27
|
+
async function init() {
|
|
28
|
+
const venueData = await getVenue({
|
|
29
|
+
clientId: '<clientId>',
|
|
30
|
+
clientSecret: '<clientSecret>',
|
|
31
|
+
venue: '<venue>',
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const mapView = await showVenue(document.getElementById('mappedin-map'), venueData);
|
|
35
|
+
mapView.FloatingLabels.labelAllLocations();
|
|
36
|
+
mapView.addInteractivePolygonsForAllLocations();
|
|
37
|
+
mapView.on(E_SDK_EVENT.CLICK, ({ polygons }) => {
|
|
38
|
+
console.log(`Polygon with id ${polygons[0].id} clicked!`);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
document.addEventListener('DOMContentLoaded', init);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
For full documentation, read our [Getting Started guide on the Developer Portal](https://developer.mappedin.com/web-sdk/v5/getting-started/). Developers using React or Angular should follow our [Using React](https://developer.mappedin.com/web-sdk/v5/using-react/) or [Using Angular](https://developer.mappedin.com/web-sdk/v5/using-angular/) guides.
|