Map APIgetHeading()Methods

Map() constructor

Example

Return the compass heading of the aerial image:

map.getHeading();

Try it Yourself »

Definition and Usage

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

The getHeading() method can only be used with the SATELLITE or HYBRID map types, both of which support a 45° angled image viewport for specific locations at high zoom levels.


Syntax

mapvariable.getHeading();


Return Value

Value Description
number Compass heading degrees.


Map() constructor

other extensions