This function can be used to force the MapView to show a specific latitude and longitude (also see fsMapViewSet2DViewFollowMode).

 

 

Syntax
bool fsMapViewSet2DViewLatLong(
    FsContext ctx,
    FsTextureId id,
    double dLatitude,
    double dLongitude
    )

 

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.
dLatitudeThe latitude to move the view to.
dLongitudeThe longitude to move the view to.

 

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).