<html>
<head>
<script language="javascript">
<!--
// Å׸¶ Àû¿ë
// 0: default, 1: gray, 2: theme
function SetMapTheme(Type)
{
var themefile = defaultThemeFile;
if (Type == 1) themefile = nightThemeFile;
if (Type == 2) themefile = grayThemeFile;
if (Type == 3) themefile = roadLinealphaThemefile;
if (Type == 4) themefile = roadLineThemeFile;
if (Type == 5) themefile = roadBdThemeFile;
if (Type == 6) themefile = roadBdClearThemeFile;
if (Type == 7) themefile = roadYellowThemeFile;
if (Type == 8) themefile = colorThemeFile;
if (Type == 9) themefile = roadBrownThemeFile;
if (Type == 10) themefile = bdLineThemeFile;
var ctrl = m_Map.GetCtrlMan();
var thememan = ctrl.GetThemeMan();
if (thememan.LoadTheme(themefile) != true) {
alert("Theme¸¦ LoadingÇÏÁö ¸øÇß½À´Ï´Ù.");
}
}
// OnCreate À̺¥Æ®¿¡¼ Å׸¶ °ü·Ã Path ¼³Á¤
function MapEvent_OnCreate(Flag)
{
var ctrl = m_Map.GetCtrlMan();
var mapman = ctrl.GetMapMan();
var thememan = ctrl.GetThemeMan();
var ctrlstate = ctrl.GetControlState();
// Map Data Path ÁöÁ¤
if (mapman.SetDefaultPath("http://localhost/MapData")) {
alert("Map Data Path¸¦ ÁöÁ¤ÇÏÁö ¸øÇß½À´Ï´Ù.");
}
// Theme Path ÁöÁ¤
thememan.SetDefaultPath("http://localhost/Theme");
if (thememan.LoadTheme("TalMap.TMT") != true) {
alert("Theme¸¦ LoadingÇÏÁö ¸øÇß½À´Ï´Ù.");
}
ctrlstate.SetLevel(4);
ctrlstate.SetZoomScale(0.5);
}
-->
</script>
<script language="javascript" for="m_Map" event="OnCreate(Flag)">
<!--
MapEvent_OnCreate(Flag);
-->
</script>
</head>
<body>
<table>
<tr>
<td>
<OBJECT ID="Map" CLASSID="CLSID:DD9B48AD-EDDC-4D2C-BD68-D1FB4B382024"
codebase='http://localhost/TalMapX_Web.CAB#version=1,0,0,17' width=100% height=80%>
</OBJECT>
</td>
</tr>
</table>
</body>
</html>