HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Maps API setMapTypeId() Method

Map() Constructor Map() Constructor

Example

Change the kind of map to display:

map.setMapTypeId(google.maps.MapTypeId.TERRAIN);

Try it yourself »

Definition and Usage

The setMapTypeId() method is used to change the kind of map to display.


Syntax

mapvariable.setMapTypeId(google.maps.MapTypeId.CONSTANT);


Constants of MapTypeId

Constant Description
HYBRID Displays a photographic map + roads and city names
ROADMAP Displays a normal, default 2D map
SATELLITE Displays a photographic map
TERRAIN Displays a map with mountains, rivers, etc.


Map() Constructor Map() Constructor


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE