Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Maps API getMapTypeId() Method

Maps API getMapTypeId() Method

Map() Constructor Map() Constructor

Example

Returns the current map type:

map.getMapTypeId();

Try it »


Definition and Usage

The getMapTypeId() method returns the current map type.


Syntax

mapvariable

.getMapTypeId();


Return Value

Value Description
HYBRID A photographic map with roads and city names.
ROADMAP A standard, default 2D map.
SATELLITE A photographic map.
TERRAIN A map with mountains, rivers, etc.

Map() Constructor Map() Constructor