how to remove google maps control

i am implementing google maps on my website, but i want to remove satellite and map options from my maps which is shown on right top, also pan controls.this is my code,

map = new google.maps.Map(document.getElementById("map"), {
            center: center,
            zoom: 8,
            maptypecontrol :false,
            mapTypeId: google.maps.MapTypeId.ROADMAP 


Can we do this???


have a look at the documentation

the option should be

disableDefaultUI: true

Need Your Help

How to make WinForms chart control primary Y axis to be drawn on both sides of the chart?

c# winforms mschart

Y axis and its level labels are only drawn on the left by default while the right side appears unbordered and unlabelled. How to make them to be duplicated on the right side?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.