SmartMap Tutorial > SmartMap Event > OnCreate Event
 
  • SmartMap ÃʱâÈ­½Ã ¼³Á¤
  • OnCreate À̺¥Æ®´Â Smartmap »ý¼º½Ã ¹ß»ýÇÏ´Â À̺¥Æ® °¢Á¾ ÃʱâÈ­ ÀÛ¾÷Àº ¿©±â¼­ Çϵµ·Ï ÇÕ´Ï´Ù.
    Map ÃʱâÈ­ ¼³Á¤ÀÌ À߸ø µÇ¸é Licnese ¿À·ù³ª À¥ÆäÀÌÁö°¡ ¿­¸®Áö ¾Ê¾Æ SmartMapÀ» ½ÇÇàµÇÁö ¾ÊÀ»¼öµµ ÀÖ½À´Ï´Ù.
    
     
  • ¿¹Á¦ÄÚµå :SmartMap ÃʱâÈ­
  • <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   /////////////////
    
    
    
     
  • Smartmap »ý¼º½Ã ¹ß»ýÇÏ´Â À̺¥Æ® °¢Á¾ ÃʱâÈ­ ÇÕ´Ï´Ù.
  •  
    ZoomOut
    Zoom 13
    Zoom 12
    Zoom 11
    Zoom 10
    Zoom 9
    Zoom 8
    Zoom 7
    Zoom 6
    Zoom 5
    Zoom 4
    Zoom 3
    Zoom 2
    Zoom 1
    Zoom 0
    ZoomIn
    ZoomIn ZoomOut ÁöµµÈ¸Àü µÚ·Î ¾ÕÀ¸·Î Á¶¸Áº¸±â ÀÔüº¸±â ±ÛÀÚ º¸À̱â Ŭ¸³º¸µå·Î º¹»ç ÀúÀåÇϱâ Æú¸®°ï Æú¸®¶óÀÎ Æú¸®°ï»èÁ¦ ¹üÀ§ÃøÁ¤ °Å¸®ÃøÁ¤ °Å¸®ÃøÁ¤»èÁ¦ °´Ã¼ÆíÁý Theme¼³Á¤
     
    top