home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / CHIPCD_6_2000.iso / software / trial / atlas / 00_system / script / initmap1.js < prev    next >
Encoding:
JavaScript  |  2000-04-26  |  2.5 KB  |  62 lines

  1. //<script language=javascript>
  2. //    JScript ΩεΣ Σδ  ≡εßε≥Φ τ εß'║Ω≥ε∞ MapX ≤ Γ│Ωφ│ Ωα≡≥Φ
  3. //    ─α≥α ±≥Γε≡σφφ :    14.11.98
  4. //    ╬±≥αφφ  ≡σΣαΩ÷│ :
  5. //    ╧≡Φτφα≈σφφ : ≤∩≡αΓδ│φφ  ⌠≡σΘ∞ε∞ map
  6. //    ├δεßαδⁿφ│ Ωεφ±≥αφ≥Φ (Σε±≥≤∩ Σε Γ±│⌡ τ∞│φφΦ⌡ ≥α Ωεφ±≥αφ≥ τ Σε≈│≡φ│⌡ ⌠≡σΘ∞│Γ ≈σ≡στ parent):
  7. //        c_blnAskUser - ≈Φ τα∩Φ≥≤Γα≥Φ Ωε≡Φ±≥≤Γα≈α ∩≡Φ ΓΦ≈σ≡∩αφφ│ timeout
  8. //        c_intDefaultTimeOut = 500;        // ±≥αφΣα≡≥φΦΘ ≥αΘ∞-α≤≥ Σδ  ±Φφ⌡≡εφ│τα÷│┐ ⌠≡σΘ∞│Γ (∞±σΩ)
  9. //    ╟∞│φφ│ ≡│Γφ  ∞εΣ≤δ :
  10. //        m_lrCurrentLayer
  11. //        m_bTryMap - │φΣ│Ωα≥ε≡ ±∩≡εßΦ ταπ≡≤τΩΦ εß'║Ω≥α MapX (ΓΦΩε≡Φ±≥εΓ≤║≥ⁿ±  ∩≡Φ ∩σ≡σΓ│≡÷│ Ωεφ±Φ±≥σφ≥φε±≥│ εß'║Ω≥α)
  12. //
  13. //        m_strGeoSet
  14. //        m_strDataSet
  15. //        m_fZoom
  16. //        m_frmContents - ΓΩατ│ΓφΦΩ φα ⌠≡σΘ∞ contents
  17. //        m_iAttCount - Ω│δⁿΩ│±≥ⁿ ±∩≡εß │φ│÷│■Γα≥Φ Ωα≡≥≤
  18. //    ╦Φ≥ΓΦφσφΩε ╬. (10.10.98-20.10.98, 09.11.98-10.11.98)
  19. //    ╤ε≥φ│ΩεΓ ╤.
  20.  
  21.     var c_strMapframe = "..\\..\\00_system\\MapX.htm";
  22.     var c_strMapPage = "MapX.htm";
  23.  
  24. // * * * * * * * * * * * * * * * InitiateMapX * * * * * * * * * * * * * * * * * * * * * * * * * * *
  25. //    ╧≡Φτφα≈σφφ : ├ε≥≤║ εß'║Ω≥ MapX Σδ  Γ│Σεß≡αµσφφ  ∩ε≥ε≈φε┐ Ωα≡≥Φ.
  26. //                ┬±│ ∩ε≈α≥ΩεΓ│ ≤±≥αφεΓΩΦ Σδ  °α≡≤ ∞α■≥ⁿ ταΣαΓα≥Φ±ⁿ ≤ Σαφ│Θ ⌠≤φΩ÷│┐
  27. //    ╟εΓφ│°φ│ τ∞│φφ│ ⌠≤φΩ÷│┐:
  28. //        m_strGeoSet -
  29. //
  30. //
  31. //    ╨στ≤δⁿ≥α≥:    true - ∩≡Φ ≤±∩│°φε∞≤ ΓΦΩεφαφφ│, false - φσ ≤±∩│°φΦΘ ≡στ-≥, │φαΩ°σ - - φσ ΓΦτφα≈σφΦΘ
  32. //
  33. // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  34. function InitiateMapX() {
  35.     var l_mapxmap; // εß'║Ω≥ MapX ≤ ⌠≡σΘ∞│ map
  36.     var l_lrCurrentLayer;
  37. //
  38.     // ∩│Σ≡α⌡≤φεΩ °δ ⌡≤ Σε ΣεΩ≤∞σφ≥α ε∩Φ±≤ Ωα≡≥Φ
  39.     var l_strRefFileLocation =     parent.frames["contents"].window.location.href;
  40.         var l_strRefFileDirectory=l_strRefFileLocation.substring(l_strRefFileLocation.length-c_strMapPage.length,0);
  41.         var l_strRootPath = parent.window.location.href;
  42.         var c_strIndex = "index.htm";
  43. //        var c_strIndex = "AtlasUA.htm";
  44.         l_strRootPath =  l_strRootPath.substring( l_strRootPath.length-c_strIndex.length, 0 );
  45.  
  46.     l_mapxmap=parent.frames["contents"].mapxmap;
  47.     // ΩεΣ φΦµ≈σ ΣεΣα║ ∩ε≥ε≈φΦΘ πσε±σ≥ ≥α Γ±≥αφεΓδ■║ │φ°│ ∩α≡α∞σ≥≡Φ Ωα≡≥Φ
  48.         l_mapxmap.IsGeoFormat =1;
  49.     l_mapxmap.TypeToolbar = 1;
  50.     l_mapxmap.MetaBasePath = l_strRootPath+"AtlasControl";
  51.     l_mapxmap.RootPath = l_strRootPath;
  52.     l_mapxmap.Lang = "UKR";
  53.     l_mapxmap.Init();
  54.     l_mapxmap.Legend = l_strRefFileDirectory+m_strLegend; //
  55.     l_mapxmap.Descr = l_strRefFileDirectory+m_strDescr; //
  56.     l_mapxmap.Geoset = l_strRefFileDirectory+m_strGeoSet; //
  57.     return;
  58. }
  59.  
  60. // end script ";
  61. //</script>
  62.