Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility for dotted line for walking route #2204

Open
imaginaris opened this issue Aug 6, 2019 · 3 comments
Open

Add possibility for dotted line for walking route #2204

imaginaris opened this issue Aug 6, 2019 · 3 comments

Comments

@imaginaris
Copy link

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).

@1ec5
Copy link
Contributor

1ec5 commented Aug 23, 2019

Unfortunately, this is a design decision on the part of the Mapbox GL project. You can read the rationale here: mapbox/mapbox-gl-js#2351 (comment) mapbox/mapbox-gl-js#3427 (comment).

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.

@andrlee andrlee added the P0 Critical priority. label Aug 23, 2019
@andrlee
Copy link

andrlee commented Aug 23, 2019

@designevokes heads up! ^

@1ec5
Copy link
Contributor

1ec5 commented Nov 12, 2021

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 1ec5 added this to the v2.1 milestone Nov 12, 2021
@MaximAlien MaximAlien modified the milestones: v2.1, v2.2 Nov 29, 2021
@ShanMa1991 ShanMa1991 modified the milestones: v2.2, v2.3 Jan 21, 2022
@MaximAlien MaximAlien removed this from the v2.3 milestone Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants