FATOS Map Developers (Powered by NostraMap)
Developer SiteConsole
  • FATOS Developer Introduction
  • FATOS API
    • Map
      • Map control
        • Building
        • Bounds
        • Center
        • Heading
        • Flyto
        • Tilt
        • Zoom
        • Marker
          • Instance Members
        • Polyline
        • Polygon
        • Circle
        • On/Off
        • Once
        • Language
        • Theme
        • Cluster
          • Instance Members
      • Button control
      • Utilities
        • Rectangle
        • Distance
        • Area
    • Search
      • POI
      • Address
      • Geocoding
        • Forward
        • Reverse
      • Geofencing
    • Routing
      • Route
      • Route for truck
    • Advanced
      • Logistics
  • FATOS SDK
    • Authentication
    • Platform
      • Android
        • Start
        • Component
      • iOS
        • Start
        • Component
      • React Native
        • Start
        • Component
  • Release note
    • FATOS Map API
    • API Server
    • RP Server
  • Get your API Key
  • Troubleshooting
    • FAQ
Powered by GitBook
On this page
  • setHeading
  • Parameter
  • Example
  • getHeading
  • Return
  • Example

Was this helpful?

  1. FATOS API
  2. Map
  3. Map control

Heading

Focal point for rotating a map view

setHeading

Takes an angle value (in degree) and sets "heading" (focal point) to rotate the map in the desired direction or angle. The default is 0 degree (North)

mapInstance.setHeading(value);

Parameter

Required Parameter

Description

Type

value

Angle in degree from 0 to 360

Numeric

Example

mapInstance.setHeading(90);

getHeading

Gets the current focal point (heading) value in angle.

mapInstance.getHeading();

Return

The angle in degree.

Example

mapInstance.getHeading();
return : 90
PreviousCenterNextFlyto

Last updated 4 years ago

Was this helpful?