zjm1126
zjm1126

Reputation: 66787

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?

Upvotes: 1

Views: 959

Answers (1)

Marcelo
Marcelo

Reputation: 9407

Add

disableDefaultUI: true

to your mapOptions.

Upvotes: 1

Related Questions