X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook