@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 CHANGED
@@ -3,11 +3,8 @@
3
3
  ## Resources
4
4
 
5
5
  - [Mappedin Developer Portal](https://developer.mappedin.com)
6
- - [Web SDK V4 guides](https://developer.mappedin.com/guides/webv4/quickstart)
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.POLYGON_CLICKED, polygon => {
40
- console.log(`Polygon with id ${polygon.id} clicked!`);
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
- * [experimental] Fetching an offline Venue bundle
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
- * [experimental] Fetching an offline Venue bundle
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.