简体   繁体   中英

customize android google map direction line

I had implemented this code for google map direction between two poin . now I want to customize this line between this two point . but I can't see any API or value for this work . how can I customize this line color , width , .... thank you .

You can customize line through PolylineOptions class which is already in code. Check below lines in ParserTask 's onPostExecute method:

            lineOptions.width(2);
            lineOptions.color(Color.RED);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM