简体   繁体   English

Google Map,如何使其看起来更亮? 看起来有点暗

[英]Google Map, how to make it look brighter? it looks a little dark

Hi I'm using google map in my app and I'm wondering if there's a way to make it look brighter, clearer, right now it looks a little dark specially when you are looking at places with lots of vegetation like London, it is a very dark green and I would like to make it look brighter. 嗨,我在我的应用程序中使用了谷歌地图,我想知道是否有一种方法可以使它看起来更明亮,更清晰,现在特别是当您看着植被繁茂的地方(例如伦敦)时,它看起来有些暗。深绿色,我想使其看起来更亮。 I was testing my app outdoors there was a lot of sun and the screen automatically increased the brightness to the max and the map looked beautiful, is there a way? 我在室外测试我的应用程序时,有很多阳光,屏幕会自动将亮度提高到最大,并且地图看起来很漂亮,有没有办法?

Maybe is for the theme you are using in your activity. 也许是您在活动中使用的主题。

Try this: 尝试这个:

<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsFloating">false</item>
<item name="android:backgroundDimEnabled">false</item>

If you want more information about this, visit this . 如果您需要更多有关此的信息,请访问

This answer is based on OP's comment on answer posted by Carlos. 该答案基于OP对Carlos发表的答案的评论。

Since you said, that's just the way Google maps is, that is just the default Google Maps theme. 如您所说,这就是Google Maps的方式,这就是默认的Google Maps主题。

You can change the theme to however you want. 您可以将主题更改为所需的主题。

https://mapstyle.withgoogle.com/ https://mapstyle.withgoogle.com/

This site will show you the options and give basic JSON format at the end for you to put in a file and create your own theme. 该站点将为您显示选项,并在最后给出基本的JSON格式,供您放入文件并创建自己的主题。 You can make it lighter or darker. 您可以使其更亮或更暗。

When you get the JSON at the end, understand it. 当您最后获得JSON时,请理解它。 The site only allows few options to change but you can modify JSON and really create a very unique theme. 该站点只允许更改几个选项,但是您可以修改JSON并真正创建一个非常独特的主题。

To learn more and understand the JSON object provided, read more here: https://developers.google.com/maps/documentation/android-api/style-reference 要了解更多信息并了解提供的JSON对象,请在此处阅读更多信息: https : //developers.google.com/maps/documentation/android-api/style-reference

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

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