This function can be used to focus the MapView on the aircraft position (essentially this is the same as calling fsMapViewSet2DViewLatLong every frame).

 

 

Syntax
bool fsMapViewSet2DViewFollowMode(
    FsContext ctx,
    FsTextureId id,
    bool bFollow
    )

 

Members
ParametersDescription
ctxA value of type FsContext provided as an argument of the gauge callback.
idThe MapView render ID as returned by the function fsMapViewCreate.
bFollowWhen set to true the MapView will follow the aircraft, and if false it won’t.

 

Return Values

Returns false if:

  • no texture matches the given MapView ID
  • the ctx is invalid

Otherwise it will return true.

 

 

Remarks

This function is only valid when fsMapViewSet3D is set to false (ie: 3D is disabled).