index.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. //大球初始化
  2. import jtMap3d from './Widgets/base.js';
  3. import StatusBar from './Widgets/StatusBar.js';
  4. //加载各类图层服务
  5. import layer from "./Widgets/layer.js";
  6. //加载浮动图层
  7. import CrImageServerLayer from "./Widgets/CrImageServerLayer.js";
  8. //定位
  9. import LocateUtil from "./Widgets/LocateUtil.js";
  10. //空间分析
  11. import SpatialAnalysis from "./Widgets/SpatialAnalysis.js";
  12. //地形分析
  13. import TerrainAnalysis from "./Widgets/TerrainAnalysis.js";
  14. //场景特效
  15. import SceneEffects from "./Widgets/SceneEffects.js";
  16. //场景控件
  17. import SceneControl from "./Widgets/SceneControl.js";
  18. //跟踪漫游
  19. import TrackRoam from "./Widgets/Roaming/TrackRoam.js";
  20. import Roaming from "./Widgets/Roaming/Roaming.js";
  21. //点对象
  22. import PointObject from "./Widgets/PointObject.js";
  23. //线对象
  24. import PolylineObject from "./Widgets/PolylineObject.js";
  25. //面对象
  26. import PolygonObject from "./Widgets/PolygonObject.js";
  27. //墙体对象
  28. import WallObject from "./Widgets/WallObject.js";
  29. //墙体对象
  30. import CircleObject from "./Widgets/CircleObject.js";
  31. //绘图工具
  32. import CommonTools from "./Widgets/DrawTools/CommonTools.js";
  33. import {
  34. SketchViewModel
  35. } from './Widgets/DrawTools/SketchViewModel.js';
  36. //绘图工具
  37. import {
  38. DrawTools
  39. } from './Widgets/DrawTools/DrawTools.js';
  40. import DrawMilitaryPlot from './Widgets/DrawTools/DrawMilitaryPlot.js';
  41. import DrawPoint from './Widgets/DrawTools/DrawPoint.js';
  42. //自定义窗口
  43. import PopupWindow from './Widgets/PopupWindow.js';
  44. //公共类方法
  45. import * as common from "./Widgets/common/common.js";
  46. //公共类方法-坐标转换
  47. import CoordTransform from "./Widgets/common/CoordTransform.js";
  48. //公共类方法-提示tip
  49. import ReminderTip from "./Widgets/common/ReminderTip.js";
  50. //相机绕点旋转
  51. import AroundPoint from './Widgets/AroundPoint.js';
  52. //相机绕地旋转
  53. import AroundView from './Widgets/AroundView.js';
  54. // var jt3dSDK = {
  55. // version: "2.0.2",
  56. // createTime: "2023.05.16",
  57. // author: "joy",
  58. // }
  59. // function expose() {
  60. // var old = window.jt3dSDK;
  61. // jt3dSDK.noConflict = function () {
  62. // window.jt3dSDK = old;
  63. // return this;
  64. // };
  65. // window.jt3dSDK = jt3dSDK;
  66. // }
  67. // // define P for Node module pattern loaders, including Browserify
  68. // if (typeof module === 'object' && typeof module.exports === 'object') {
  69. // module.exports = jt3dSDK;
  70. // // define P as an AMD module
  71. // } else if (typeof define === 'function' && define.amd) {
  72. // define(jt3dSDK);
  73. // }
  74. // // define gispace as a global P variable, saving the original P to restore later if needed
  75. // if (typeof window !== 'undefined') {
  76. // expose();
  77. // }
  78. // jt3dSDK.jtMap3d=jtMap3d
  79. // export default jt3dSDK
  80. (function(global, factory) {
  81. typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
  82. typeof define === 'function' && define.amd ? define(['exports'], factory) :
  83. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jt3dSDK = {}));
  84. })(this, (function(exports) {
  85. 'use strict';
  86. exports.jtMap3d = jtMap3d;
  87. exports.StatusBar = StatusBar;
  88. exports.layer = layer;
  89. exports.CrImageServerLayer = CrImageServerLayer;
  90. exports.LocateUtil = LocateUtil;
  91. exports.SpatialAnalysis = SpatialAnalysis;
  92. exports.TerrainAnalysis = TerrainAnalysis;
  93. exports.SceneEffects = SceneEffects;
  94. exports.SceneControl = SceneControl;
  95. exports.TrackRoam = TrackRoam;
  96. exports.Roaming = Roaming;
  97. exports.PointObject = PointObject;
  98. exports.PolylineObject = PolylineObject;
  99. exports.PolygonObject = PolygonObject;
  100. exports.WallObject = WallObject;
  101. exports.CircleObject = CircleObject;
  102. exports.CommonTools = CommonTools;
  103. exports.SketchViewModel = SketchViewModel;
  104. exports.DrawTools = DrawTools;
  105. exports.DrawMilitaryPlot = DrawMilitaryPlot;
  106. exports.DrawPoint = DrawPoint;
  107. exports.PopupWindow = PopupWindow;
  108. exports.common = common;
  109. exports.CoordTransform = CoordTransform;
  110. exports.ReminderTip = ReminderTip;
  111. exports.AroundPoint = AroundPoint;
  112. exports.AroundView = AroundView;
  113. Object.defineProperty(exports, '__esModule', { value: true });
  114. }));
  115. // (function(global, factory) {
  116. // if (typeof exports === 'object' && typeof module !== 'undefined' && !window.Cesium) {
  117. // require('../public/ThirdParty/Cesium-1.93/Widgets/widgets.css')
  118. // };
  119. // typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.Cesium || require('../public/ThirdParty/Cesium-1.93/Cesium.js')), (window.turf || require('@turf/turf'))) :
  120. // typeof define === 'function' && define.amd ? define(['exports', 'Cesium', '@turf/turf'], factory) :
  121. // (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jt3dSDK = {}, global.Cesium, global.turf));
  122. // })(this, (function(exports, Cesium, turf) {
  123. // 'use strict';
  124. // exports.jtMap3d = jtMap3d
  125. // }));
  126. export default jt3dSDK