Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Draw routes with directions (polylines with arrow icons) #5515

Closed
kingfisherphuoc opened this issue Jun 30, 2016 · 3 comments
Closed

Draw routes with directions (polylines with arrow icons) #5515

kingfisherphuoc opened this issue Jun 30, 2016 · 3 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@kingfisherphuoc
Copy link

Platform: Android
Mapbox SDK version: 4.1.0 final

Steps to trigger behavior

  1. Get routes via routing api
  2. Draw routes as:


    PolylineOptions polylineOptions = new PolylineOptions()
    .add(points)
    .color(routeColor)
    .alpha(0.8f)
    .width(routeWidth);
    mapboxMap.addPolyline(polylineOptions);

Expected feature

Is there any way to draw route (line) with direction in each line? As an arrow Icon?

Images:

This is the current routes:
screen shot 2016-06-30 at 2 51 15 pm

This is the expected routes:
route_sign_road_direction-512

@1ec5 1ec5 added the Android Mapbox Maps SDK for Android label Jul 1, 2016
@1ec5
Copy link
Contributor

1ec5 commented Jul 1, 2016

You’d have to draw the arrow as a separate marker.

@tobrun
Copy link
Member

tobrun commented Jul 4, 2016

@kingfisherphuoc: at this time we are not thinking about exposing this as an API (@1ec5 please correct me if I'm wrong on this). Were you able to resolve this using markers as @1ec5 suggested?

@1ec5
Copy link
Contributor

1ec5 commented Jul 5, 2016

Also, it’s worth noting that, once #837 lands in a future release, it’ll be possible to add the route line using GeoJSON; you’d add the arrows as a symbol layer with symbol-placement: line and icon-image.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

4 participants