Mappedin JS, React & React Native SDK v6.21.0

Features

  • Added displayArrowsOnPath to TPathSectionHighlightOptions, allowing direction arrows to be toggled independently for a highlighted section of a Path (via Navigation.highlightPathSection() and Paths.highlightPathSection()), separate from the path-level arrow setting.
const directions = await mapView.getDirections(arrive, depart);

await mapView.Navigation.draw(directions, {
    pathOptions: {
        displayArrowsOnPath: false,
        animateArrowsOnPath: true,
    },
});

mapView.Navigation.highlightPathSection(
    directions.coordinates[3],
    directions.coordinates[5],
    {
        widthMultiplier: 1.1,
        displayArrowsOnPath: true, // animated arrows only in the highlighted section
    },
);
  • Added a 'pass-through' value to the interactive option for Shapes, geometries, and feature collections, allowing pointer events to skip the entity and reach whatever is rendered behind it.
mapView.updateState(shape, { interactive: "pass-through" });

Performance

  • Improved image overlay rendering performance, eliminating a freeze that could occur when zooming in on maps with many image overlays and significantly reducing texture memory usage on mobile devices.
  • Improved performance on large maps with many spaces per floor.

Fixes

  • Fixed an issue where DOM overlays mounted as siblings of the map could be hidden behind the map canvas.
  • Fixed an issue where pixel-width (screen-space) Paths would shrink when the camera was elevated instead of maintaining a constant on-screen size.
  • Fixed an issue where highlighting a section of a Path could reveal slowly or highlight segments outside the intended range, including segments on other floors or destinations.
  • Fixed an issue where the camera could drift sideways when zooming out past the minimum zoom level.
  • Fixed an issue where Models could render with their default colors instead of applied material overrides, and where Models added to a hidden floor would not appear when that floor became visible.
  • Fixed an issue where transparent portions of a Model’s material could become visible when setting the model’s opacity.
  • Fixed an issue where basement walls could extend above ground after changing floors.
  • Fixed an issue where basement floors could display flickering artifacts when adjacent buildings also had basements.
  • Fixed an issue where loading a venue containing a floor-stack with no floors could throw an error.
  • Fixed an issue where drag-to-rotate and drag-to-pan gestures would freeze when the cursor moved over HTML Markers or overlays.