Mappedin JS, React & React Native SDK v6.27.0

Features

  • Added checkForUpdates() to MapData which checks whether the map data has changed since it was loaded, without downloading the full bundle. It returns { hasChanges, updatedAt }.
const { hasChanges, updatedAt } = await mapData.checkForUpdates();

if (hasChanges) {
    const freshMapData = await getMapData({ key, secret, mapId });
}
  • Added updatedAt to MapData which returns the timestamp reported by the API when the map data was loaded.
  • Added a long-press event to MapView that fires after a pointer is held in place for approximately 500 milliseconds without panning or a second finger. The payload matches click. A long-press does not also emit a click.
mapView.on('long-press', (event) => {

    console.log(event.coordinate);
});

Fixes

  • Fixed an issue where Camera.focusOn() in outdoor mode ignored screenOffsets and inset padding, so the camera centred on the full viewport instead of the visible map area.
  • Fixed an issue where direction arrows on short sloped connection Paths, such as escalators, appeared stretched.