简体   繁体   English

如何在Google Maps v3中隐藏“ MapTypeControlStyle”控件?

[英]How to hidden the “MapTypeControlStyle” control on Google-Maps v3?

This is my code: 这是我的代码:

var myOptions = {
          zoom: 13,
          center: latlng,
          mapTypeControlOptions: { style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,position:google.maps.ControlPosition.TOP_LEFT},
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);

I see the doc, but I can't find the 'hidden' Property 我看到了文档,但是找不到“隐藏”属性

What can I do? 我能做什么?

Add

disableDefaultUI: true

to your mapOptions. 到您的mapOptions。

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

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