// step1. POI group »ý¼º
var group = m_Map.GetCtrlMan().GetPOIMan().FindGroup(1);
if (!group)
group = m_Map.GetCtrlMan().GetPOIMan().NewGroup(1);
// step2. Style »ý¼º
var style = m_Map.GetCtrlMan().GetPOIMan().FindStyle(1);
if (!style)
{
style = m_Map.GetCtrlMan().GetPOIMan().NewStyle(1);
style.SetGDIFont("±¼¸²", 0, 8);
style.SetFontColor(Map.GetUtility().RGBColor(255, 0, 0));
style.SetFontOutColor(Map.GetUtility().RGBColor(255, 0, 0));
style.SetBrush(Map.GetUtility().RGBColor(100, 0, 255), m_Map.GetUtility().GetConstToValue("BS_SOLID"));
style.SetPen(Map.GetUtility().RGBColor(0, 0, 0), 1, m_Map.GetUtility().GetConstToValue("PS_SOLID"));
}
// step3. group¿¡ Style Àû¿ë
group.SetStyle(style);
// step4. POI Item »ý¼º
var item = group.NewItem(-1); // ¾ÆÀ̵ð ÀÚµ¿ »ý¼º
item.SetLonLat(45706591, 13494596);
item.SetShowImage(1);
item.SetTextStyle(m_Map.GetUtility().GetConstToValue("DRAWTEXT_STYLE_BOARDOUTLINE"));
item.SetCaption("POI Test");
item.SetAngle(30);
item.SetImageOffset(0);
item.SetAlpha(100);
// À̹ÌÁö »ý¼º
Map.GetCtrlMan().GetImageMan().SetDefaultPath("http://localhost/Theme/Image");
var poiImage = m_Map.GetCtrlMan().GetImageMan().LoadImage("POIIMAGE", "CAR.png");
item.SetImage(poiImage);