//-------------------------------------------------------------------------- var mailfile = ""; //-------------------------------------------------------------------------- function GetUrl() { return "http://test.hanimap.co.kr:8080/examples/jsp/"; } //-------------------------------------------------------------------------- function GetMailFile() { return mailfile; } //-------------------------------------------------------------------------- // ÃʱâÈ­ //-------------------------------------------------------------------------- function Init() { if(typeof(Hanimap) == "object") { if(typeof(Hanimap.MapInit) == "function") { Hanimap.MapInit (); } } if(typeof(iList) == "object") { iList.Init (); } } //-------------------------------------------------------------------------- // ¿òÁ÷ÀÌ´Â ¸ðµå //-------------------------------------------------------------------------- function MoveMode() { } //-------------------------------------------------------------------------- // È®´ë //-------------------------------------------------------------------------- function ZoomIn() { Hanimap.ZoomIn (); } //-------------------------------------------------------------------------- // Ãà¼Ò //-------------------------------------------------------------------------- function ZoomOut() { Hanimap.ZoomOut (); } //-------------------------------------------------------------------------- // ¸é ¬ÃøÁ¤ //-------------------------------------------------------------------------- function SetArea() { Hanimap.SetArea (); } //-------------------------------------------------------------------------- // °Å¸®ÃøÁ¤ //-------------------------------------------------------------------------- function SetDistance() { Hanimap.SetDistance (); } //-------------------------------------------------------------------------- // ÀÌÀüÈ­¸é //-------------------------------------------------------------------------- function GoPrev() { Hanimap.GoPrev(); } //-------------------------------------------------------------------------- // ´ÙÀ½È­¸é //-------------------------------------------------------------------------- function GoNext() { Hanimap.GoNext(); } //-------------------------------------------------------------------------- // ÁöµµÀúÀå //-------------------------------------------------------------------------- function MapSave() { Hanimap.PlugInView ("Saving", true, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); Hanimap.PlugInExtCall("Saving", 3); Hanimap.SaveMap(1, GetUrl() + "jpeg.jsp"); } //-------------------------------------------------------------------------- // Áöµµ¸ÞÀÏâ //-------------------------------------------------------------------------- function MapMail() { Hanimap.PlugInView ("Saving", true, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); Hanimap.SaveMap(2, GetUrl() + "jpeg.jsp"); } //-------------------------------------------------------------------------- // Áöµµ Ãâ·Ââ //-------------------------------------------------------------------------- function MapPrint() { var Coord = Hanimap.GetCenterCoord(); var level = Hanimap.GetLevel(); var url = "./Popup_Print.html?lk=" + Coord.Lon + "&lat=" + Coord.Lat + "&level=" + level; var w = 780; var h = 700; window.open(url, "", 'width='+w+',height='+h +',toolbar=no,menubar=no,status=no,resizable=no,scrollbars=no'); } //-------------------------------------------------------------------------- // À̺¥Æ® //-------------------------------------------------------------------------- function OnMapSaving(iType, iCnt, iMax) { Hanimap.PlugInExtCall("Saving", 1, iCnt, iMax ); } //-------------------------------------------------------------------------- // À̺¥Æ® //-------------------------------------------------------------------------- //-------------------------------------------------------------------------- function OnFileSaved(iType) { Hanimap.PlugInView ("Saving", false, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); if(iType == 0) { alert("Áöµµ À̹ÌÁö°¡ ÀúÀå µÇ¾ú½À´Ï´Ù."); } else if(iType == -1) { alert("Áöµµ À̹ÌÁö°¡ ÀúÀåÀÌ Ãë¼Ò µÇ¾ú½À´Ï´Ù."); } else if(iType == -2) { alert("Áöµµ À̹ÌÁö°¡ ÀúÀåµÇÁö ¾Ê¾Ò½À´Ï´Ù."); } } function OnMapSaved(iType, iFileName) { if(iType == 1) { Hanimap.PlugInExtCall("Saving", 2, iFileName ); // window.location.href = GetUrl() + iFileName; } else if(iType == 2) { Hanimap.PlugInView ("Saving", false, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); var url = "./MapFrame_Event_Mail_Popup.html"; var w = 740; var h = 860; mailfile = iFileName; window.open(url, "mail", 'width='+w+',height='+h +',toolbar=no,menubar=no,status=no,resizable=no,scrollbars=no'); } else if(iType == 10) { Hanimap.PlugInView ("Saving", false, {HAlign:'Left', VAlign:'Top'}, {HMargin: Hanimap.GetWidth()/2, VMargin: Hanimap.GetHeight()/2} ); var aaa = document.getElementById('logtext'); aaa.value = iFileName; } }