This function can be used to select a specific WeatherRadar mode for the given MapView.

 

 

Syntax
bool fsMapViewSetWeatherRadarMode(
    FsContext ctx,
    FsTextureId id,
    FsMapViewWeatherRadarMode eMode
    )

 

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.
eModeThe weather radar mode. See the Remarks for possible modes.

 

Return Values

Returns false if:

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

Otherwise it will return true.

 

Remarks

The table below shows the available modes for the MapView when showing the weather radar:

eModesDescription
FS_MAP_VIEW_WEATHER_RADAR_MODE_TOPVIEWWill be displayed over a 2D map
FS_MAP_VIEW_WEATHER_RADAR_MODE_HORIZONTALWill be displayed instead of a 2D map
FS_MAP_VIEW_WEATHER_RADAR_MODE_VERTICALWill be displayed instead of a 2D map