This function can be used to set the view orientation for the MapView camera when in 3D mode.

 

 

Syntax
bool fsMapViewSet3DViewOrientation(
    FsContext ctx,
    FsTextureId id,
    FsMapView3DOrientation eOrientation
    )

 

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.
eOrientationSets the orientation for the 3D camera based on one of the supplied values. See the Remarks for more information.

 

Return Values

Returns false if:

  • no texture matches the given MapView ID
  • the ctx is invalid
  • if the eOrientation value is not one of the ones permitted

Otherwise it will return true.

 

Remarks

The table below shows the available references for the MapView 3D orientation:

eOrientationDescription
FS_MAP_VIEW_3D_ORIENTATION_FRONTVIEWSets the 3D view to a static front view camera.
FS_MAP_VIEW_3D_ORIENTATION_TOPVIEWSets the 3D view to a static top view camera.
FS_MAP_VIEW_3D_ORIENTATION_CUSTOMSets the 3D view to use the custom view setup using the function fsMapViewSet3DCustomViewOrientationInRadians.

 

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