Latest web development tutorials
 

Google Maps API MapTypeId Property

< MapOption Object

Example

Specify what kind of map to display:

mapTypeId:google.maps.MapTypeId.ROADMAP
Try it Yourself »

Definition and Usage

The MapTypeId specifies what kind of map to display.


Syntax

MapTypeId.CONSTANT

Constants of MapTypeId

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.

< MapOption Object