Google地图的夜间模式? [英] Night mode for Google maps?
问题描述
我的问题很简单. Google地图有夜间模式吗?到目前为止,我只能申请GoogleMap.MAP_TYPE_NORMAL
| GoogleMap.MAP_TYPE_TERRAIN
| GoogleMap.MAP_TYPE_SATELLITE
,但找不到夜间模式.我想要这样的东西
My question is simple. Is there a night mode for Google maps? So far I could only apply GoogleMap.MAP_TYPE_NORMAL
| GoogleMap.MAP_TYPE_TERRAIN
| GoogleMap.MAP_TYPE_SATELLITE
but could not find Night Mode. I want something like this
请不要建议我使用叠加层,我已经尝试过了.我无法使用它,因为必须在其上放置标记.
Please do not suggest me to use overlay, I already have tried. I cannot use it as I have to place markers on it.
出现在此帖子中,但它已经2岁了,并且我想应该有所改善.
Came across this post but it is 2 years old and I guess there should be some improvement.
推荐答案
Google仅的自定义地图样式Android 和 iOS 以及新的样式向导,该向导可让您设计一次样式,并将其全面应用于所有支持的平台:Android,iOS,JavaScript API ,甚至是静态Maps API.
Google just announced having launched custom map styling for Android and iOS together with a new styling wizard that allows you to design the style once, and apply it across the board on all supported platforms: Android, iOS, JavaScript API, and even Static Maps API.
Google Maps Android API开发人员文档甚至提供了有效的夜间模式样式示例.
The Google Maps Android API developer docs even provide a working night mode style example. A code sample using custom styles is also available.
这篇关于Google地图的夜间模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!