//-------------------------------------------------------------------------- // 맵의 초기화 작업이 완료된 후 발생하는 이벤트 //-------------------------------------------------------------------------- FsEventMan.prototype.OnCreate = function( mapmode ) { Hanimap.SetLevelRange (3, 11); Hanimap.SetCrossView (true); Hanimap.SetLogoPos (true, {HAlign:'Left', VAlign:'Bottom'}, {HMargin: 10, VMargin: 10}); Hanimap.SetCompassPos (false, {HAlign:'Left', VAlign:'Top'}, {HMargin: 10, VMargin: 5}); Hanimap.SetScalePos (false, {HAlign:'Right', VAlign:'Bottom'}, {HMargin: 100, VMargin: 50}); Hanimap.SetAddressPos (true, {HAlign:'Left', VAlign:'Top'}, {HMargin: 5, VMargin: 5}); Hanimap.PreImage ("http://hanimap.eksys.co.kr/public_image/BackEKsys_256.png", "MapBackImage"); Hanimap.PlugInAdd ("./plugins/PlugIn_Loading.swf", "Loading", false, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); Hanimap.PlugInAdd ("./plugins/PlugIn_Saving.swf", "Saving", false, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); Hanimap.LevelBarLoad ("./plugins/LevelBar.swf", {HAlign:'Right', VAlign:'Top'}, {HMargin: 10, VMargin: 10}); if(mapmode == 10) { // 일반 모드 Hanimap.IndexMapLoad ( "./plugins/MIndexMap.swf", {HAlign:'Right', VAlign:'Bottom'}, {HMargin: 10, VMargin: 40}); } else if(mapmode == 11) { // 인쇄 모드 Hanimap.SyncRecv (); opener.Hanimap.SyncSend (); } Hanimap.Enabled ( ); }; //-------------------------------------------------------------------------- // 중심좌표의 행정동 주소를 자동으로 가져왔을 경우 발생하는 이벤트 //-------------------------------------------------------------------------- FsEventMan.prototype.OnChangeAddress = function(iAddress) { var fAddress = document.getElementById('CAddress'); if(typeof(fAddress) == "object" && fAddress != null) fAddress.value = iAddress.Sido + " " + iAddress.Gugun + " " + iAddress.Dong; }; //-------------------------------------------------------------------------- // GetAddressByLL 호출에 대한 결과 데이터를 알려주기 위해 발생하는 이벤트 //-------------------------------------------------------------------------- FsEventMan.prototype.OnGetAddressByLL = function(iAddress) { RPMan.ToGetAddressByLL(iAddress.Sido + " " + iAddress.Gugun + " " + iAddress.Dong); } //-------------------------------------------------------------------------- // 을 호출하여 명칭(POI)검색을 하면 결과 데이터를 알려주기 위해 발생하는 이벤트 //-------------------------------------------------------------------------- FsEventMan.prototype.OnSRData_Address = function(iXml, iTag) { POIMan.DelGroup(100); var fTotcnt = parseInt(iXml.TOTCNT); var mCount = parseInt(iXml.LISTCNT); var div_count = iList.document.getElementById('DIV_TOTCNT'); div_count.innerHTML = "건수 (총 " + fTotcnt + "건)"; var div_list = iList.document.getElementById('DIV_LIST'); var tStr = ""; if(mCount > 0) { for(var i=0; i 0) { for(var i=0; i 0 && Lat > 0) Hanimap.SetCenterPos(Lon, Lat, 3); else alert("[" + HName + "] 를 찾을 수 없습니다."); }