android - Android MapView 上的彩色街道?

标签 android google-maps

是否可以使用 Google Maps API 突出显示街道?我想在街道上设置一种颜色,类似于在 Google map 的导航功能中所做的。

如果对此没有通用的实现 - 我想可能没有 - 是否有任何好的/简单的解决方案?我唯一能想到的是反向地理编码坐标,看看这些坐标是否解析为我想要着色的街道,如果是,我会在这些点上绘制一些颜色。但这是一个非常丑陋的解决方案。 ;-)

希望有高手能帮帮我!

最佳答案

Is there any possibility to highlight a street using the Google Maps API?

不是 Android 的。使用基于 Web 的 Google map 可能可行也可能不可行——我不熟悉它的全部功能。如果您发现基于 Web 的 map 确实支持此功能,您始终可以通过 WebView 将其中一个嵌入到您的应用中。

If there is no generic implementation for this - and I guess there probably isn't - is there any good/simple solution for this?

我怀疑对此没有解决方案,无论是简单的还是其他方式。由于 Internet 开销,您的反向地理编码解决方案将花费很长时间。

关于android - Android MapView 上的彩色街道?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3910348/

相关文章:

java - 为什么要实现 onClickListener 而不是将 onClick 属性设置为 Activity 类中定义的方法?

android - 在 Android 中创建自己的适配器?

node.js - Node +谷歌街景: How to check if a Street View is available in a certain radius

google-maps - 如何删除 Google Maps V3 上的床图标?

javascript - 如何在谷歌地图API中显示大缩放滚动

android - location 和 currentBestLocation 从哪里来?在 Android 开发指南中(获取用户位置)

Android - 开发预览中未显示 Actionbar

Android:删除 Html.fromHtml 的弃用警告

php - 使用谷歌地图进行邻近搜索

css - javascript 谷歌地图缩放到零时为空灰色背景