Latest web development tutorials

Maps API getMapTypeId () method

Map () constructor Map () constructor

Examples

Returns the current map types:

map.getMapTypeId();

try it"

Definition and Usage

getMapTypeId () method returns the current map type.


grammar

mapvariable.getMapTypeId();


return value

描述
HYBRID 一种带公路和城市名称的照相地图。
ROADMAP 一种标准的,默认是 2D 的地图。
SATELLITE 一种照相地图。
TERRAIN 一种带有山脉、河流等的地图。


Map () constructor Map () constructor