Maps API getMapTypeId() Method
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