@mappedin/mappedin-js 5.0.0 → 5.0.2
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 +3 -6
- package/lib/esm/get-venue/index.d.ts +4 -2
- package/lib/esm/get-venue/index.js +1 -1
- package/lib/esm/navigator/index.js +1 -1
- package/lib/esm/renderer/{browser-WYDHL43N.js → browser-KHJ5ARUQ.js} +1 -1
- package/lib/esm/renderer/chunk-BZTBAOL6.js +1 -0
- package/lib/esm/renderer/index.d.ts +5261 -0
- package/lib/esm/renderer/index.js +1 -1
- package/lib/mappedin.js +1 -1
- package/lib/node/index.js +1 -1
- package/package.json +2 -2
- package/lib/esm/renderer/chunk-NTVFFW45.js +0 -1
package/README.md
CHANGED
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
## Resources
|
|
4
4
|
|
|
5
5
|
- [Mappedin Developer Portal](https://developer.mappedin.com)
|
|
6
|
-
- [
|
|
7
|
-
- [Release notes](https://developer.mappedin.com/blog/2021-11-23-web-sdk-v4-release-notes/)
|
|
8
|
-
- [Migration guide to V4](https://developer.mappedin.com/blog/2021-11-19-mappedin-web-sdk-v4-migration-guide/)
|
|
6
|
+
- [Releases and Roadmap](https://developer.mappedin.com/releases)
|
|
9
7
|
- [Trial Keys](https://developer.mappedin.com/guides/api-keys)
|
|
10
|
-
- [API Reference](https://developer.mappedin.com/docs/web/latest)
|
|
11
8
|
|
|
12
9
|
## Usage
|
|
13
10
|
|
|
@@ -36,8 +33,8 @@ async function init() {
|
|
|
36
33
|
);
|
|
37
34
|
mapView.FloatingLabels.labelAllLocations();
|
|
38
35
|
mapView.addInteractivePolygonsForAllLocations();
|
|
39
|
-
mapView.on(E_SDK_EVENT.
|
|
40
|
-
console.log(`Polygon with id ${
|
|
36
|
+
mapView.on(E_SDK_EVENT.CLICK, ({ polygons }) => {
|
|
37
|
+
console.log(`Polygon with id ${polygons[0].id} clicked!`);
|
|
41
38
|
});
|
|
42
39
|
}
|
|
43
40
|
document.addEventListener('DOMContentLoaded', init);
|
|
@@ -97,7 +97,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue' {
|
|
|
97
97
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
98
98
|
};
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* @deprecated
|
|
101
|
+
* Fetching an offline Venue bundle
|
|
101
102
|
* It is possible to download the venue bundle with all assets built in, which allows for caching/offline solutions.
|
|
102
103
|
* Note 1: This requires enabling from Mappedin's Customer Solutions team.
|
|
103
104
|
* Note 2: This may behave a lot slower for large venues, especially those with many images. We are actively working on improving load times.
|
|
@@ -2189,7 +2190,8 @@ declare module '@mappedin/mappedin-js/lib/esm/get-venue/get-venue' {
|
|
|
2189
2190
|
shouldPopulateBundledImagesAsBlobs?: boolean;
|
|
2190
2191
|
};
|
|
2191
2192
|
/**
|
|
2192
|
-
*
|
|
2193
|
+
* @deprecated
|
|
2194
|
+
* Fetching an offline Venue bundle
|
|
2193
2195
|
* It is possible to download the venue bundle with all assets built in, which allows for caching/offline solutions.
|
|
2194
2196
|
* Note 1: This requires enabling from Mappedin's Customer Solutions team.
|
|
2195
2197
|
* Note 2: This may behave a lot slower for large venues, especially those with many images. We are actively working on improving load times.
|