Mappedin JS, React & React Native SDK v6.25.0

Features

  • Added experimental discrete dash rendering for Paths. When dashed is true and __EXPERIMENTAL_DASH_OPTIONS.__EXPERIMENTAL_DASH_STYLE is set to 'discrete', each dash is drawn as its own rounded rectangle instead of a mask on a continuous path, so dashes keep their shape around sharp corners. __EXPERIMENTAL_DASH_CORNER_RADIUS controls corner rounding from 0 (sharp rectangle) to 1 (fully rounded).
mapView.Paths.add(coordinates, {

    dashed: true,
    __EXPERIMENTAL_DASH_OPTIONS: {
        __EXPERIMENTAL_DASH_MODE: 'width-scaling',
        __EXPERIMENTAL_DASH_SIZE: 3,
        __EXPERIMENTAL_GAP_SIZE: 2,
        __EXPERIMENTAL_DASH_STYLE: 'discrete',
        __EXPERIMENTAL_DASH_CORNER_RADIUS: 1,
    },
});

Fixes

  • Fixed an issue where simplified Paths could curve through nearby obstacles instead of taking a straight line from start to end.
  • Fixed an issue where experimental ribbon Paths with interactive set to true could not be clicked or hovered.
  • Fixed an issue where panning the camera fired the camera-change event twice for each movement.