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???

Answers


have a look at the documentation http://code.google.com/apis/maps/documentation/javascript/controls.html#DisablingDefaults

the option should be

disableDefaultUI: true

Need Your Help

Jquery - Multiple elements with the same class but different IDs to use the same function by with different results

javascript php jquery html css

I am working on a music site that would like the the album covers as links to the track listings for that particular release.

QTableWidgetItem set hidden data

qt qtablewidget qtablewidgetitem

Given a QTableWidget, is there a way to set an "hidden" value for a cell (QTableWidgetItem), different from the displayed value?

Enable Entity Framework 6 for MySql (C#) in WinForms of Microsoft Visual Studio 2013

c# mysql winforms visual-studio-2013 entity-framework-6

Yesterday I knew that Entity Framework is another method to access database beside using Dataset or DataReader,then I tried to make Entity Framework 6 work for my MySql database server in MVS 2013....

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.