|
TalMap SDK Libary Reference |
XAdminItem::InAdmin |
ÇàÁ¤µ¿¿¡ ÇØ´ç ÁÂÇ¥°¡ Æ÷ÇԵǴÂÁö È®ÀÎÇÑ´Ù. |
|
|
|
Parameters
|
|
Return Value
|
Æ÷ÇÔ ¿©ºÎ.
0: Æ÷ÇÔµÇÁö ¾ÊÀ½.
1: Æ÷ÇÔµÊ.
|
|
|
|
Remarks
|
InAdmin ´Â XAdminItem ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© ÇØ´çÁÂÇ¥°¡ XAdminItem¿¡ Æ÷ÇԵǴÂÁö È®ÀÎ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
function TestBtn()
{
var ctrlman = m_Map.GetCtrlMan();
var adminman = ctrlman.GetAdminMan();
var ctrlstate = ctrlman.GetControlState();
var centerLL = ctrlstate.GetLLCenter(); // ÁöµµÀÇ Á᫐ ÁÂÇ¥
var admitem = adminman.GetAdminItem(centerLL.GetX(), centerLL.GetY());
if (admitem)
{
var ret = admitem.InAdmin(45711708, 13515420);
if (ret)
{
// ÇØ´ç ÁÂÇ¥°¡ adminitem ÀÇ ¿µ¿ª¿¡ ¼ÓÇÑ´Ù.
}
else
{
// ÇØ´ç ÁÂÇ¥°¡ adminitem ÀÇ ¿µ¿ª¿¡ ¼ÓÇÏÁö ¾Ê´Â´Ù.
}
admitem.Destroy();
}
}
|
|
|
void CTestTalMapXDlg::OnBnClickedButton3()
{
CXCtrlMan ctrlman = m_Map.GetCtrlMan();
CXAdminMan adminman = ctrlman.GetAdminMan();
CXControlState ctrlstate = ctrlman.GetControlState();
CXPoint centerLL = ctrlstate.GetLLCenter(); // ÁöµµÀÇ Á᫐ ÁÂÇ¥
CXAdminItem admitem = adminman.GetAdminItem(centerLL.GetX(), centerLL.GetY());
if (admitem.m_lpDispatch != NULL)
{
BOOL bRet = admitem.InAdmin(45711708, 13515420);
if (bRet)
{
// ÇØ´ç ÁÂÇ¥°¡ adminitem ÀÇ ¿µ¿ª¿¡ ¼ÓÇÑ´Ù.
}
else
{
// ÇØ´ç ÁÂÇ¥°¡ adminitem ÀÇ ¿µ¿ª¿¡ ¼ÓÇÏÁö ¾Ê´Â´Ù.
}
admitem.Destroy();
}
}
|
|
|
|
See Also
|