C++ SDK

◆ AddBitmapToMap()

static int CApplicationAPI::AddBitmapToMap ( LpError  lpError,
LPCTSTR  lpszBitmapPath,
long  lX,
long  lY,
UINT &  nBitmapID,
DWORD  dwMaxTime = DEFAULT_MAX_TIME 
)
static

The function shows picture on BrowseMap.

Parameters
lpErrorAdditional error information returned from Drive.
lpszBitmapPathFull path to desired picture.
lXX-coordinate of picture position on BrowseMap.
lYY-coordinate of picture position on BrowseMap.
nBitmapIDPicture ID that can be used later to manipulate with picture. Value is set by AddBitmapToMap function.
dwMaxTimeMaximum time (in milliseconds) function can take. If dwMaxTime=0 function execution is not time limited.
Returns
1 if successful, other value otherwise.

Picture must be of 32 bit bmp format.

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.