Web SDK v4 Release notes

Mappedin Web SDK v4 release notes are posted here and this page will be kept up-to-date as updates are released. The SDK is available from @mappedin/mappedin-js on NPM.

v4.1.5 - November 14, 2022

  • Fix camera animation rotation for larger angles
  • Fix performance issues with Intel -based Macs
  • Fix camera zoom issue when parent element size is zeroed

v4.1.4 - October 17, 2022

  • Make sure map is fully interactive when showVenue -promise resolves
  • Fixes emitAnalytics -option
  • Fixes removing of hover color when specifying a custom color
  • Fixes memory leaks related to mapView.destroy()

v4.1.3 - September 19, 2022

  • Updates to React Native SDK

v4.1.2 - August 30, 2022

  • Fixes issues discovered in React Native due to previous optimizations made in the Analytics class.

v4.1.1 - August 10, 2022

  • Fix searching tags that contain diacritics (accents such as ñ)

v4.1.0 - August 2, 2022

  • Added Offline Search feature. Initialize the OfflineSearch with venue data and easily query it with .search(query).
  • Added maxTilt property to Camera which can be read to retrieve the current max tilt angle, and be set to a new max tilt angle. A range of is enforced via clamping, limiting the tilt angle to between a completely top-down view and completely side-on view.
  • Added useDraftData option to getVenue to allow accessing draft mode data for testing purposes. This feature needs to be enabled separately for your API keys.

v4.0.21 - July 18, 2022

  • Implement Blue Dot analytics when any position is found, and when the position and floor level are found.
  • Adds a getter and setter for camera position. Set the position via a MappedinCoordinate, and get it back as one. This is one way to do so:
mapView.Camera.set({ position: venue.locations[0].nodes[0] })
console.log(mapView.Camera.position);
  • Fix hovering a polygon that has height larger than 0 in SINGLE_GEOMETRY_MODE
  • Update to ThreeJS v138

v4.0.20 - May 27, 2022

  • Add mapView.Camera.interactions.disable(); and .enable() -methods to disable user from interacting with the camera view. Clicking or tapping the map will work as well as programmatically configuring the camera.
  • Fixed a bug where Flat Labels were not removed by mapView.removeAllLabels() -call.

v4.0.19 - May 20, 2022

  • Fix tooltip issue where floor change tooltips wouldn't show up sometimes

v4.0.18 - May 16, 2022

  • Performance improvements to tooltip collisions when handling camera events
  • Blue Dot experience and performance updates in multi-building venues to better determine the building and floor the user is on
  • Console warnings regarding Floating Labels and Smart Labels now no longer pop up when you hover over a polygon on desktop.

v4.0.17 - April 14, 2022

  • Improved frame rates on large venues especially on Android by merging geometries, which reduces calls to the GPU by 10x, resulting in much higher FPS. This is on by default. To use the old rendering method, use MAP_RENDER_MODE.MULTI_GEOMETRY.
  • Image textures are cached more effectively, resulting in fewer HTTP requests
  • Performance improvements by processing labels on-demand per map
  • Documentation and readme improvements

v4.0.16 - March 23, 2022

  • Fix polygon image rotation

v4.0.15 - March 17, 2022

  • Fix polygon image flipping towards the camera
  • Fix labelAllLocations so that polygons with images are not automatically labeled

v4.0.14 - March 14, 2022

  • Improved performance of Floating Labels by avoiding redrawing the label when possible

v4.0.13 - March 9, 2022

  • Fix Tooltip size caching and removal issues introduced in v4.0.12

v4.0.12 - March 7, 2022

  • Improved the performance of tooltips, markers and floating labels
  • Improved the initial render times of venues
  • Added alwaysVisible option to Tooltip. This is false by default and can be set to true ensure that overlapping tooltips in cases such as nearby wayfinding directions are always displayed.

v4.0.11 - February 28, 2022

  • Added getPolygonsAtCoordinate to check which polygons a MappedinCoordinate is inside the bounds of.
mapView.getPolygonsAtCoordinate(coordinate: MappedinCoordinate, includeNonInteractive: boolean = false): MappedinPolygon[]

includeNonInteractive indicates whether polygons that are not marked as interactive should be included in the result (false by default).

The method returns an array of polygons the coordinate is inside the bounds of, in order of their altitude from highest to lowest.

v4.0.10 - February 8, 2022

  • Added a new rich click event: E_SDK_EVENT.CLICK which exposes the geo-coordinates, an array of polygons and whether the click was near the Blue Dot.
export type TMapClickEvent = {
/**
* The latitude / longitude of where the user clicked the map.
* Both components may be NaN if unable to compute these components.
*/
position: {
latitude: number;
longitude: number;
};
/**
* A list of MappedinPolygons corresponding to every polygon that a user's
* click passed through. These are in order of first to last intersected.
* Will be empty if no interactive polygons were clicked.
*/
polygons: MappedinPolygon[];
/**
* Indicates whether the user clicked close to the Blue Dot object on the
* map, if present. If Blue Dot is disabled, this will always be false.
*/
nearBlueDot: boolean;
};

v4.0.9 - December 10, 2021

  • Fixed hover tooltip placement after the map has been resized when hovering on a Flat Label location

v4.0.8 - December 1, 2021

  • Fixed Floating label positions to the height of the polygon
  • Fixed issues in the rendering of text objects on the map

v4.0.7 - November 23, 2021

  • Fixed dynamic imports. Minimum Safari version target is now 11.1.
Was this page helpful?