Search code examples
google-mapsgoogle-maps-api-3

How to disable Google Map's Satellite view?


I am working on Google Maps Javascript API V 3.

Everything is working fine but I want to disable the MAP button which appears in the top right area with SATELLITE button.

How can I do this?


Solution

  • When you enable the map and passes the options to it, you have the chance to specify a mapTypeControlOptions. These have an Array that specifies what kind of maptype's you will allow the user to be able to see. It can be seen here http://code.google.com/apis/maps/documentation/javascript/reference.html#MapTypeControlOptions.

    If you don't want the user to have any options as to the maptypes, you can also specify that by setting the maps mapTypeControl to false.