最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google maps android api 2 - How can I set the buildings to a 2d footprint format and use a JSON style too? - Stack Overflow

programmeradmin0浏览0评论

I have an android app where I use a google map where the buildings are 3d. I want it to switch to only 2d. It is possible in the Google Cloud Console but here there aren't many label settings which I need (like contrast, brigthness). I want to use 2d buildings and keep the label settings too.

I haven't found any JSON code to set the buildings to 2d.
The JSON file with the labels:

[
  {
    "featureType": "all",
    "elementType": "labels",
    "stylers": [
      {
        "weight": "0.01"
      }
    ]
  },
  {
    "featureType": "all",
    "elementType": "labels.text",
    "stylers": [
      {
        "visibility": "off"
      }
    ]
  },
  {
    "featureType": "all",
    "elementType": "labels.text.fill",
    "stylers": [
      {
        "visibility": "on"
      },
      {
        "saturation": "100"
      },
      {
        "lightness": "-100"
      },
      {
        "gamma": "0.00"
      },
      {
        "color": "#000000"
      }
    ]
  },
  {
    "featureType": "all",
    "elementType": "labels.text.stroke",
    "stylers": [
      {
        "visibility": "on"
      },
      {
        "color": "#000000"
      },
      {
        "saturation": "-48"
      },
      {
        "lightness": "-75"
      },
      {
        "gamma": "4.80"
      }
    ]
  },
  {
    "featureType": "all",
    "elementType": "labels.icon",
    "stylers": [
      {
        "saturation": "-100"
      },
      {
        "visibility": "on"
      },
      {
        "lightness": "-100"
      },
      {
        "color": "#000000"
      }
    ]
  },
  {
    "featureType": "landscape.man_made",
    "elementType": "labels",
    "stylers": [
      {
        "weight": "2.59"
      }
    ]
  }
]

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论