THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML

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