The Microsoft Flight Simulator 2024 MapView API permits you to create and render interactive maps for your glasscockpits for things like altitude and weather radar. This API builds on a NanoVG API texture, so you can draw over it to customise it if you wish.

You can find a sample project to use as a reference when using the MapView API here:

The functions available for this API are as follows:

FunctionDescription
fsMapViewCreateCreate a new MapView.
fsMapViewDeleteDelete a (previously created) MapView.
fsMapViewSet2DViewFollowModeSet the MapView to focus on the aircraft position.
fsMapViewSet2DViewLatLongForce the MapView to show a specific latitude and longitude.
fsMapViewSet2DViewRadiusInMetersSet the number of meters around the aircraft to be displayed on the MapView.
fsMapViewSet3DUsed to enable or disable 3D mode for the MapView.
fsMapViewSet3DCustomViewOrientationInRadiansSet a custom camera view orientation when using the 3D MapView.
fsMapViewSet3DViewOrientationSet the type of camera orientation when using the 3D MapView.
fsMapViewSetAltitudeColorListSet an array of colour structs which will then be used when the MapView is set to “Altitude” mode.
fsMapViewSetAltitudeRangeInFeetSet the altitude range which is used to compute how things are coloured when the MapView is set to “Altitude” mode
fsMapViewSetAltitudeReferenceSelect which point of reference will be used to compute altitude when the MapView is set to “Altitude” mode.
fsMapViewSetBackgroundColorSelect a color which will be used to color the uncolored part of any MapView.
fsMapViewSetMapHillShadeStrengthSet the hill shading strength of 2D maps.
fsMapViewSetMapHillShadeSunPositionSet the position of the sun used for hill shading on 2D maps.
fsMapViewSetMapHillShadeVerticalExaggerationSet the vertical exaggeration used for hill shading on 2D maps.
fsMapViewSetMapIsolinesVisibilityUsed to show or hide isolines on the MapView.
fsMapViewSetSizeSet the texture resolution for the given MapView.
fsMapViewSetViewModeSelect a specific view mode for the given MapView.
fsMapViewSetVisibilityShow or hide a given MapView.
fsMapViewSetWeatherRadarBankLimitsInRadiansLimit the radar bank.
fsMapViewSetWeatherRadarClearColorSet the color displayed outside of the weather radar cone.
fsMapViewSetWeatherRadarColorAlphaEnabledEnable the use of alpha channel values for weather radar rain rate colors.
fsMapViewSetWeatherRadarConeAngleInRadiansSpecify the angle of the cone in which the weather radar will display rainfall.
fsMapViewSetWeatherRadarModeSelect a specific weather radar mode for the given MapView.
fsMapViewSetWeatherRadarPitchLimitsInRadiansLimit the radar pitch.
fsMapViewSetWeatherRadarRainColorsSet an array of colour structs which will then be used to draw the weather radar.
fsMapViewSetWeatherRadarScanRateSet the radar scan rate.
fsMapViewSetWeatherRadarStabilizationSet the axis around which the radar should be stabilised.
fsMapViewSetWeatherRadarTiltInRadiansSet the radar tilt angles.
fsMapViewSetWeatherRadarV2Enables the v2 of the MapView API for weather display.
fsMapViewSetWeatherRadarVisibilityShow or hide the weather radar on the MapView.
fsMapViewShowAirportLayerShow or hide the airport layer on the map.

0/255