// 이미지 생성
Map.GetCtrlMan().GetImageMan().SetDefaultPath("http://localhost/Theme/Image");
var poiImage = m_Map.GetCtrlMan().GetImageMan().LoadImageList("POIIMAGE", "CAR.png", 64, 64);
// 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"));
// 0~3 레벨 까지만 이미지를 지정 합니다.
style.SetImage(0, poiImage);
style.SetImage(1, poiImage);
style.SetImage(2, poiImage);
style.SetImage(3, poiImage);
}
// step3. POI 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.SetAnimation(200);
item.SetImageOffset(0);
item.SetAlpha(100);
// 각도설정
item.SetAngle(30);