THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Maps API getHeading() Method

Map() Constructor Map() Constructor

Example

Return the compass heading of aerial imagery:

map.getHeading();
Try it Yourself »

Definition and Usage

The getHeading() method returns the compass heading of aerial imagery.

The getHeading() method can only be used with map type: SATELLITE or HYBRID (which support a 45° perspective imagery view for certain locations, at high zoom levels).


Syntax

mapvariable.getHeading();

Return Values

Value Description
number The compass heading in degrees

Map() Constructor Map() Constructor