Easy Tutorial
❮ Google Maps Types Google Maps Ref ❯

Map API getMapTypeId() Method

Map() Constructor

Example

Returns the current map type:


Definition and Usage

The getMapTypeId() method returns the current map type.


Syntax


Return Value

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

Map() Constructor

❮ Google Maps Types Google Maps Ref ❯