var ctrlman = m_Map.GetCtrlMan();
var util = m_Map.GetUtility();
var imageman = ctrlman.GetImageMan();
var poiman = ctrlman.GetPOIMan();
//Áß½ÉÁÂÇ¥ ±¸Çϱâ
var controlstate = ctrlman.GetControlState();
var posLL = controlstate.GetLLCenter();
//À̹ÌÁö »ý¼º
imageman.SetDefaultPath("http://www.talmap.co.kr/tutorial/");
var poiImage = imageman.LoadImageList("POIIMAGE", "image/CAR.png", 64,64);
//step1. POI group »ý¼º
var group = poiman.FindGroup(1);
if(!group)
{
group = poiman.NewGroup(1);
}
//step2. Style »ý¼º
var style = poiman.FindStyle(1);
if(!style)
{
style = poiman.NewStyle(1);
style.SetGDIFont("±¼¸²", 0, 8);
style.SetFontColor(util.RGBColor(255, 0, 0));
style.SetFontOutColor(util.RGBColor(255, 0, 0));
style.SetBrush(util.RGBColor(100, 0, 255),util.GetConstToValue("BS_SOLID"));
style.SetPen(util.RGBColor(0, 0, 0),1,util.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(posLL.GetX(), posLL.GetY());
item.SetShowImage(1);
item.SetTextStyle(util.GetConstToValue("DRAWTEXT_STYLE_BOARDOUTLINE"));
item.SetCaption("POI Test");
item.SetAnimation(200);
item.SetImageOffset(0);
item.SetAlpha(100);
item.SetAngle(30);
item.SetScale(50);//À̹ÌÁö¸¦ Ãà¼ÒÇÕ´Ï´Ù.
var getScaleVal = item.GetScale();
alert(getScaleVal);