android - 如何实现一个小的静态 map 预览作为列表图标?

标签 android android-widget google-maps-api-3 android-maps google-static-maps

我构建了一个 ListActivity,现在我想添加 map 预览作为列表图标。我不想扩展 MapView,因为:第一,我只需要一点静态预览,第二,我已经扩展到 ListView。

我已经研究过使用 static map api ,但是在这么小的尺寸下看起来也不太好:

alt text

http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=65x65&maptype=roadmap&sensor=true

最佳答案

抱歉,Android 中没有生成 map 预览的功能。您将需要为此使用一些 Web 服务。

关于android - 如何实现一个小的静态 map 预览作为列表图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3802333/

相关文章:

android - Nativescript 和资源文件夹 - 有简单的解决方案吗?

android - Facebook Analytics - 应用内通知不起作用

android - 如何在 AutoCompleteTextView 中创建干净的按钮

android - android-wheel 在三星 Galaxy S2 ICS 更新上工作吗

javascript - 使用 Google Maps v3 中的一个变量将事件监听器附加到一组标记 - 循环、闭包

java - Android 字符串中的 Textview 正则表达式?

android - 线性布局背景色

android - 为 ArrayAdapter 中的每个字符串赋值

javascript - 使用相对文件路径在 Google map 中显示自定义标记

javascript - Google map - 按城市名称插入标记