fsMapViewSet2DViewFollowMode
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
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 . |
bFollow |
When 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).
See Also
- NanoVG API
- fsMapViewCreate
- fsMapViewSet3D
- fsMapViewSet2DViewLatLong
- fsMapViewSet2DViewRadiusInMeters