使用google map api2为Android设计风格化地图 [英] Stylize map with google map api2 for Android

查看:183
本文介绍了使用google map api2为Android设计风格化地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方式可以将风格化地图与Google地图API for android 结合使用?我需要的只是使背景灰色和道路白色,并关闭一些标志,如巴士站。

Is there a way to stylize map with google map api2 for android? All I need is to make background gray and roads white and turn off some markers like bus stops.

我知道它可以与谷歌的JavaScript脚本地图api v3。它的工作原理是这样的:

I know it is posible with google javaScript maps api v3. It works like this:

   var pinkParksStyles = [
{
 featureType: "all",
 stylers: [
  { saturation: -80 }
 ]
},
{
 featureType: "poi.park",
 stylers: [
  { hue: "#ff0023" },
  { saturation: 40 }
 ]
}
];

map.setOptions({styles: pinkParksStyles});

https://developers.google.com/maps/documentation/javascript/styling#styling_the_default_map

但是我

推荐答案

Google Maps Android API目前不支持样式化地图

Styled maps are not currently supported for the Google Maps Android API

这篇关于使用google map api2为Android设计风格化地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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