//-------------------------------------------------------------------------- // POI을 추가하는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.POIAdd = function(group, id, lon, lat, symbol, align, caption, contents, ipoinum) { var item = Hanimap.POI_FindItem(group, id); if (!item) { item = Hanimap.POI_NewItem(group, id); if(typeof(ipoinum) != "undefined") item.POINum = ipoinum; item.Lon = lon; // Bessel Lon item.Lat = lat; // Bessel Lat item.Caption = caption; // POI Caption item.Contents = {Text: contents}; // POI Contents item.IsClickEvent = true; // OnPOIClick 이벤트를 받을지 여부 item.ViewLevel = 5; // POI Caption이 보여지는 레벨 item.Align = align; // POI Caption의 정렬 구분 item.Symbol = symbol; // Resource_POI.swf 파일에 있는 Symbol명 item.InfoSymbol = "CLICK_BOX"; // Resource_Layer.swf 파일에 있는 Symbol명 item.TextLineOut = 0x999999; // MouseOut 상태에서 POI Caption의 라인 테두리 색상 item.TextFillOut = 0xEAEAEA; // MouseOut 상태에서 POI Caption의 배경 색상 item.TextColorOut = 0xAAAAAA; // MouseOut 상태에서 POI Caption의 텍스트 색상 item.TextLineOver = 0xFFFFFF; // MouseOver 상태에서 POI Caption의 배경 색상 item.TextFillOver = 0xFF0000; // MouseOver 상태에서 POI Caption의 배경 색상 item.TextColorOver = 0xFFFFFF; // MouseOver 상태에서 POI Caption의 텍스트 색상 Hanimap.POI_Update (item); } else { Hanimap.SetCenterPos (item.Lon, item.Lat, 0); // Hanimap.POI_Press (group, id); } }; //-------------------------------------------------------------------------- // POI Group을 삭제하는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.DelGroup = function(iGroupId) { Hanimap.POI_DelGroup(iGroupId); }; //-------------------------------------------------------------------------- // POI Item을 삭제하는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.DelItem = function(iGroupId, iItemId) { Hanimap.POI_DelItem(iGroupId, iItemId); }; //-------------------------------------------------------------------------- // POI를 강제로 MouseOver 시키는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.POIOver = function(iGroupId, iItemId) { Hanimap.POI_Over(iGroupId, iItemId); }; //-------------------------------------------------------------------------- // POI를 강제로 Click/Press 시키는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.POIPress = function(iGroupId, iItemId) { Hanimap.POI_Press(iGroupId, iItemId); }; //-------------------------------------------------------------------------- // POI를 강제로 MouseOut 시키는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.POIOut = function(iGroupId, iItemId) { Hanimap.POI_Out(iGroupId, iItemId); }; //-------------------------------------------------------------------------- // POI 정보 변경시 사용하는 함수 //-------------------------------------------------------------------------- FsPOIMan.prototype.POIChange = function(iGroupId, iItemId) { var item = Hanimap.POI_FindItem(iGroupId, iItemId); if (item!=null) { item.Symbol = "POI_ARROW"; item.Caption = "변경"; Hanimap.POI_Update(item); } }; //-------------------------------------------------------------------------- // 해당 POI에 Click 될때 발생하는 이벤트 //-------------------------------------------------------------------------- FsPOIMan.prototype.OnPOIClick = function(iItem, iX, iY) { Hanimap.POI_InfoBoxHideLast ( ); Hanimap.POI_InfoBoxView ( iItem ); }; //-------------------------------------------------------------------------- // 해당 POI에 MouseOver 될때 발생하는 이벤트 //-------------------------------------------------------------------------- FsPOIMan.prototype.OnPOIOver = function(POIItem, px, py) { }; //-------------------------------------------------------------------------- // 해당 POI에 MouseOut 될때 발생하는 이벤트 //-------------------------------------------------------------------------- FsPOIMan.prototype.OnPOIOut = function(POIItem, px, py) { };