<html>
<head>
<script language="javascript">
function MapOnCreate(){
//License ÆÄÀÏ °æ·Î
Map.LicenseInfoPath = "http://localhost/Theme/KSYS.SLC";
//Áöµµ Data¸¦ ¹Þ¾Æ¿À´Â °æ·Î TMD ÀÌÀü±îÁö ÁöÁ¤
Map.DataMan.MapDataPath = "http://localhost/MapData";
//ThemePath °æ·Î
Map.DataMan.ThemePath = "http://localhost/Theme/";
//Theme ÆÄÀÏ ¼³Á¤. ThemePath ¹Ø¿¡¼ ÀÐ¾î ¿Â´Ù.
Map.ThemeMan.FileName = "SmartMap.smt";
//³ªÄ§¹Ý À̹ÌÁö
Map.CompassMan.ImagePath = "http://localhost/c_img/map/compass.bmp";
//Map¿¡ º¯°æ»çÇ×À» ÀÚµ¿À¸·Î ÀúÀåÇÑ´Ù.
Map.CtrlMan.AutoConditionSave = true;
//14LevelÀ» ³í¸®ÀûÀ¸·Î ³ª´©¾î, 54Level·Î WheelÀ» ÀÌ¿ëÇØ Á¶Á¤ÇÑ´Ù.
Map.CtrlMan.UseDatailLevel = true;
//»ç¿ëÀÚ PC¿¡ ÀúÀåµÇ¾î ÀÖ´Â Map»óÅÂÁ¤º¸¸¦ ºÒ·¯¿Â´Ù.
Map.CtrlMan.RestoreCondition();
//ÇàÁ¤µ¿ Äڵ带 ¿¬°áÇÑ´Ù.
Map.AdminMan.fileName = = "SmartMap.PMA";
//Index MapÀ» Ç¥½ÃÇÑ´Ù.
Map.IndexMap.Visible = true;
//¸¶¿ì½º µå·¡±× ½Ã ¸ÊÀÇ ±×¸®´Â ¹æ¹ý °áÁ¤
Map.CtrlMan.MapDragMode = 200;
//layer object, POIµî È¸é º¯È°¡ ¸¹Àº °æ¿ì ¼Óµµ¸¦ Çâ»óÇÑ´Ù.
Map.TripleBuffered = true;
//Àüü HintÇ¥Ãâ Á¦¾î
Map.ShowHint = true;
//º¸ÀÌ´Â ¹®ÀÚ¸¸ HintÇ¥½Ã 1(Àüü), 0(º¸ÀÌÁö ¾ÊÀ½)
Map.MapMan.ShowTextHint = 0;
//GIF Image¸¦ »ç¿ëÇÏ´Â °æ¿ì GIFÀÇ AnimationÀ» Á¶Á¤ÇÑ´Ù.
Map.AnimationInterval = 500;
//Á¶¸Áº¸±â ¸ðµåÀÏ °æ¿ì¿Í ¾Æ´Ñ °æ¿ìÀÇ ½ÃÁ¡ ¼³Á¤
if(Map.CtrlMan.BirdView){
Map.CtrlMan.ViewCenter = 70;
}else{
Map.CtrlMan.ViewCenter = 50;
}
//layer, POIµîÀÇ Ç¥ÃâÀ» »¡¸® ó¸®ÇÒ ¼ö ÀÖ´Ù.
Map.TripleBuffered = true;
//¸Ê¿¡ Æ÷Ä¿½º¸¦ Àû¿ëÇÑ´Ù.
Map.SetFocus();
//Progress Bar¼³Á¤
Map.UIMan.ProgressBar_Visible = true;
//Graphic Mode
Map.UIMan.ProgressBar_TYpe = 1;
}
</script>
<script language="javascript" for="Map" event="OnCreate">
//Áöµµ ÃʱâÈ ½ÃÅ°´Â À̺¥Æ®
MapOnCreate();
</head>
<body>
//Áöµµ START /////////////////////////////////////////////
<table>
<tr>
<td><script src="js/SmartMap.Object.js"></script></td>
</tr>
</table>
//Áöµµ END ///////////////////////////////////////////////
</body>
</html>
SmartMap.Object.js ÆÄÀÏ ³»¿ë : SmartMap ÀÇ ActiveX ¸¦ Àû¿ëÇÕ´Ï´Ù.
// Start /////////////////
document.write("<object id='Map' classid='clsid:5797A411-BD4D-4896-9A89-415A902430B6'
codebase='http://localhost/bin/SmartMap.cab#version=3,1,4,64' width=100% height=100%></objec> ");
// End /////////////////
|