如何使用android google map sdk v2绘制虚线折线? [英] How to draw dashed polyline with android google map sdk v2?

查看:28
本文介绍了如何使用android google map sdk v2绘制虚线折线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经浏览了折线的文档 并且没有办法让它变成虚线.

I've looked through the documentation of polyline and there is no option to make it dashed.

有人知道如何用android google map sdk v2绘制虚线折线吗?

Do anybody know how to draw dashed polyline with android google map sdk v2?

推荐答案

在当前版本中是不可能的.请关注此问题以获取更新:https://code.google.com/p/gmaps-api-issues/issues/detail?id=4633

It is not possible in current release. Follow this issue for updates: https://code.google.com/p/gmaps-api-issues/issues/detail?id=4633

更新

最近,Google 在 Google Maps Android API v2 中为折线实现了此功能,并将问题 4633 标记为已修复.

Recently, Google implemented this feature for polylines in Google Maps Android API v2 and marked issue 4633 as Fixed.

形状指南中查看有关笔画模式的信息.请参阅折线和多边形教程中的示例.

See information about stroke patterns in the Shapes Guide. See an example in the Polylines and Polygons tutorial.

您也可以在这里阅读相应的博文:

You can also read the corresponding blog post here:

https://maps-apis.googleblog.com/2017/02/styling-and-custom-data-for-polylines.html

这篇关于如何使用android google map sdk v2绘制虚线折线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆