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


Color Picker

colorpicker