Maps API MapTypeId Property

MapOption Object 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 MapOption Object


SHARE THIS PAGE

COLOR PICKER

colorpicker





Search w3schools.com:

Translate w3schools.com: