Ref Getheading
# Map API getHeading() Method
[ Map() Constructor](#)
## Example
Return the compass heading of the aerial imagery:
map.getHeading();
[Try it Β»](#)
* * *
## Definition and Usage
The getHeading() method returns the compass heading of aerial imagery.
The getHeading() method can only be used with SATELLITE or HYBRID map types, which support 45Β° imagery views of specific locations at high zoom levels.
* * *
## Syntax
_mapvariable_.getHeading();
* * *
## Return Value
| Value | Description |
| --- | --- |
| _number_ | The compass heading in degrees. |
* * Map() Constructor](#)
YouTip