How to remove a MapType from google map using Google Maps Javascript V3 API?

前端 未结 4 784

Here is the snippet I am using to display Google map on my app using their V3 Javascript API.

var myOptions = {
            zoom: 15,
            mapTypeId:          


        
4条回答
  •  礼貌的吻别
    2020-12-24 15:19

    The Google Maps v3 API doc is great.

    In it, you'll find that MapOptions have a property, "mapTypeControl", which is a boolean. Set it to false to disable it for your map.

提交回复
热议问题