This function can be used to set the number of meters around the aircraft to be displayed on the MapView.



bool fsMapViewSet2DViewRadiusInMeters(
    FsContext ctx,
    FsTextureId id,
    float fRadius



Parameters Description
ctx A value of type FsContext provided as an argument of the gauge callback.
id The MapView render ID as returned by the function fsMapViewCreate.
fRadius The radius around the aircraft, in meters, to be viewed in the MapView. Value is clamped between 0 and 5000000.



Return Values

Returns false if:

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

Otherwise it will return true.




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


See Also