Map API setMapTypeId() Method
Example
Change the type of map to display:
Definition and Usage
The setMapTypeId() method is used to change the type of map to display.
Syntax
MapTypeId Constants
| Constant | Description |
|---|---|
| HYBRID | Displays a photographic map with roads and city names. |
| ROADMAP | Displays a standard, default 2D map. |
| SATELLITE | Displays a photographic map. |
| TERRAIN | Displays a map with mountains, rivers, etc. |