Change the kind of map to display:
The setMapTypeId() method is used to change the kind of map to display.
| Constant | Description |
|---|---|
| HYBRID | Displays a photographic map + roads and city names |
| ROADMAP | Displays a normal, default 2D map |
| SATELLITE | Displays a photographic map |
| TERRAIN | Displays a map with mountains, rivers, etc. |
Your message has been sent to W3Schools.