//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetNameSearch = function(iPageNo)
{
var fAdminDo = iList.document.getElementById('AdminDo').value;
if(fAdminDo == "")
{
alert("½Ã/µµ¸¦ ¼±ÅÃÇØ Áֽʽÿä.");
return;
}
var fAdminGu = iList.document.getElementById('AdminGu').value;
var fAdminDong = iList.document.getElementById('AdminDong').value;
var fName = iList.document.getElementById('SearchName').value;
Hanimap.GetNameSearch(fAdminDo, fAdminGu, fAdminDong, fName, iPageNo, GPageMaxCnt);
}
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetAddressSearch = function( )
{
var fAdminDo = iList.document.getElementById('AdminDo').value;
if(fAdminDo == "") {
alert("½Ã/µµ¸¦ ¼±ÅÃÇØ Áֽʽÿä.");
return;
}
var fAdminGu = iList.document.getElementById('AdminGu').value;
var fAdminDong = iList.document.getElementById('AdminDong').value;
var fMjibun = iList.document.getElementById('MJibun').value;
var fSjibun = iList.document.getElementById('SJibun').value;
var fSan = 0;
if(iList.document.getElementById('San').checked) fSan = 1;
Hanimap.GetAddressSearch(fAdminDo, fAdminGu, fAdminDong, fMjibun, fSjibun, fSan);
}
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.ChangeAdmin = function(Type, iObj)
{
var fAdmin = null;
switch(Type)
{
case 1:
EventMan.NameSearchGbn = "Main";
Hanimap.LoadHGugun(iObj.options[iObj.selectedIndex].value);
break;
case 2:
EventMan.NameSearchGbn = "Main";
Hanimap.LoadHDong(iObj.options[iObj.selectedIndex].value);
break;
case 3:
Hanimap.SetCenterPos(iObj.options[iObj.selectedIndex].Lon, iObj.options[iObj.selectedIndex].Lat, 3);
break;
case 11:
EventMan.NameSearchGbn = "Sub";
Hanimap.LoadHGugun(iObj.options[iObj.selectedIndex].value);
break;
case 12:
EventMan.NameSearchGbn = "Sub";
Hanimap.LoadHDong(iObj.options[iObj.selectedIndex].value);
break;
case 21:
EventMan.NameSearchGbn = "Sub";
Hanimap.LoadHGugun(iObj.options[iObj.selectedIndex].value, "B");
break;
case 22:
EventMan.NameSearchGbn = "Sub";
Hanimap.LoadHDong(iObj.options[iObj.selectedIndex].value, "B");
break;
}
}
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.SetInit = function( )
{
var MapMode = Hanimap.GetMapMode();
if(MapMode == 110) {
var fLayer = Hanimap.Layer_FindItem(4, 1);
Hanimap.Layer_DrawAble(fLayer, false);
} else if(MapMode == 120) {
var fLayer = Hanimap.Layer_FindItem(4, 2);
Hanimap.Layer_DrawAble(fLayer, false);
}
Hanimap.SetMapMode(0);
}
//--------------------------------------------------------------------------
FsMapMan.prototype.GetDistance = function( )
{
Hanimap.SetMapMode(110);
var fLayer = Hanimap.Layer_NewItem(4, 1);
Hanimap.Layer_DrawAble(fLayer, true);
}
//--------------------------------------------------------------------------
FsMapMan.prototype.GetArea = function( )
{
Hanimap.SetMapMode(120);
var fLayer = Hanimap.Layer_NewItem(4, 2);
Hanimap.Layer_DrawAble(fLayer, true);
}
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.SetModeClickNotify = function(Mode, Type){
Hanimap.SetModeClickNotify(Mode, Type);
}
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetCenterCoord = function()
{
var Coord = Hanimap.GetCenterCoord();
alert(Coord.Lon); // Áß½ÉÁÂÇ¥ÀÇ longitude (°æµµ)
alert(Coord.Lat); // Áß½ÉÁÂÇ¥ÀÇ latitude (À§µµ)
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetViewCoord = function()
{
var Coords = Hanimap.GetViewCoord();
alert(Coords.TLon); // Á»óÀÇ longitude (°æµµ)
alert(Coords.TLat); // Á»óÀÇ latitude (À§µµ)
alert(Coords.BLon); // ¿ìÇÏÀÇ longitude (°æµµ)
alert(Coords.BLat); // ¿ìÇÏÀÇ latitude (À§µµ)
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetLevel = function()
{
return Hanimap.GetLevel();
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.SetLevel = function(p)
{
Hanimap.SetLevel(p);
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetVersion = function()
{
return Hanimap.GetVersion();
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.GetXYToCoord = function(px, py)
{
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.LoadNotice = function( )
{
Hanimap.PlugInView ("notice", false);
Hanimap.PlugInView ("policy", false);
Hanimap.PlugInView ("introduction", false);
Hanimap.PlugInExtCall ( "notice", 1, "View" );
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.LoadPolicy = function( )
{
Hanimap.PlugInView ("notice", false);
Hanimap.PlugInView ("policy", false);
Hanimap.PlugInView ("introduction", false);
Hanimap.PlugInExtCall ( "policy", 1, "View" );
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.LoadIntroduction = function( )
{
Hanimap.PlugInView ("notice", false);
Hanimap.PlugInView ("policy", false);
Hanimap.PlugInView ("introduction", false);
Hanimap.PlugInExtCall ("introduction", 1, "View" );
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.LoadIntroduction1 = function( )
{
Hanimap.PlugInView ("notice", false);
Hanimap.PlugInView ("policy", false);
Hanimap.PlugInView ("introduction", false);
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.SetClipboard = function( )
{
var fMapUrl = document.getElementById('MapUrl');
window.clipboardData.setData('Text', fMapUrl.value);
};
//--------------------------------------------------------------------------
//
//--------------------------------------------------------------------------
FsMapMan.prototype.SetMapUrl = function( )
{
var fMapUrl = document.getElementById('MapUrl');
var Coord = Hanimap.GetCenterCoord();
fMapUrl.value = "http://hanimap.eksys.co.kr/map/?map=" + Coord.Lon + "_" + Coord.Lat + "_" + Hanimap.GetLevel();
}