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

Maps API getMapTypeId() Method

Map() Constructor Map() Constructor

Example

Return the current map type:

map.getMapTypeId();

Try it yourself »

Definition and Usage

The getMapTypeId() method returns the current map type.


Syntax

mapvariable.getMapTypeId();


Return Values

Value Description
HYBRID A photographic map + roads and city names
ROADMAP A normal, default 2D map
SATELLITE A photographic map
TERRAIN 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 HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook