C++ SDK

◆ MoveBitmap()

static int CApplicationAPI::MoveBitmap ( LpError  lpError,
UINT  nBitmapID,
long  lX,
long  lY,
DWORD  dwMaxTime = DEFAULT_MAX_TIME 
)
static

The function moves picture on BrowseMap.

Parameters
lpErrorAdditional error information returned from Drive.
nBitmapIDPicture ID returned form function AddBitMapToMap. Identifies picture to be moved.
lXX-coordinate of new picture position on BrowseMap.
lYY-coordinate of new picture position on BrowseMap.
dwMaxTimeMaximum time (in milliseconds) function can take. If dwMaxTime=0 function execution is not time limited.
Returns
1 if successful, other value otherwise.

X and Y coordinates represents geographical longitude and latitude taken in meters.

BrowseMap is map shown on after clicking Browse Map menu button. BrowseMap allows browse the loaded maps and change zoom.

See Coordinates conversion section in TROUBLESHOOTING page.

Possible error codes returned from Drive are:

  • 0 - Function not succeeded.
  • 1 - Function succeeded.
  • 2 - Drive not succeeded.
  • 3 - Function reached timeout.