Maps API getHeading() Method
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 |