简体   繁体   English

自定义android Google地图方向线

[英]customize android google map direction line

I had implemented this code for google map direction between two poin . 我已实施为谷歌地图的方向代码的两个POIN之间。 now I want to customize this line between this two point . 现在我想在这两个点之间自定义这条线。 but I can't see any API or value for this work . 但看不到任何API或这项工作的价值。 how can I customize this line color , width , .... thank you . 我该如何自定义这条线的颜色,宽度,...。谢谢。

You can customize line through PolylineOptions class which is already in code. 您可以通过代码中已经存在的PolylineOptions类来自定义行。 Check below lines in ParserTask 's onPostExecute method: 检查ParserTaskonPostExecute方法中的以下ParserTask行:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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