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



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



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.
dLatitude The latitude to move the view to.
dLongitude The 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.




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


See Also