mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Add possibility for dotted line for walking route

Open imaginaris opened this issue 5 years ago • 3 comments

Mapbox Navigation SDK version: 0.35.0

It would be really nice to have dotted line for walking route. Setting lineDashPattern and lineCap does not help much as the dots are being stretched and bended when zoom level changes (I guess it's because this property does not support interpolation).

imaginaris avatar Aug 06 '19 09:08 imaginaris

Unfortunately, this is a design decision on the part of the Mapbox GL project. You can read the rationale here: https://github.com/mapbox/mapbox-gl-js/issues/2351#issuecomment-202586487 https://github.com/mapbox/mapbox-gl-js/issues/3427#issuecomment-262354870.

Consider setting MGLLineStyleLayer.linePattern to an image that contains a circle with some padding or returning an MGLSymbolStyleLayer whose symbolPlacement is line and whose iconImageName looks like a circle.

1ec5 avatar Aug 23 '19 18:08 1ec5

@designevokes heads up! ^

andrlee avatar Aug 23 '19 20:08 andrlee

Although a dotted line isn’t part of the style specification, the navigation SDK should use a dashed line to represent any walking segment of a route based on the RouteStep.transportType property. This would pair nicely with the camera and puck improvements tracked in #1942.

1ec5 avatar Nov 12 '21 16:11 1ec5