config.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /**
  2. * [systemConfig description]
  3. * @type {Object}
  4. * auth yangyang
  5. * version 0.0.1
  6. */
  7. var systemConfig = {
  8. // 经度偏移矫正值 -- WGS84转上海2000
  9. // lonCorrectParams: 0,
  10. lonCorrectParams: 0.19195,
  11. // 纬度偏移校正值 -- WGS84转上海2000
  12. // latCorrectParams: 0,
  13. latCorrectParams: -0.00011,
  14. assetsUrl: "http://localhost:2013",
  15. mapViewer: {
  16. center: [31.14785322514787, 121.50195320451814],
  17. zoom: 1,
  18. },
  19. terrainMap: {
  20. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/dlg-fullcolor/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  21. },
  22. // 暂时无法使用
  23. // token: "65463DEE-620A-0ED5-2385-17ECD07CD351", //公共地图资源token
  24. // mapService: "http://121.43.55.7:10011/proxy/", //地图服务,
  25. blueBlackMap: {
  26. crs: "",
  27. // 上海市政务图--暗绿色 0--9分级
  28. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-as/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  29. // 地形图
  30. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/dlg-fullcolor/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  31. // 上海市标准底图
  32. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-shanghai-normal-sh2000/mapserver?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  33. // 上海宝石蓝图
  34. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  35. // 行政区图
  36. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/admin-pudong-sh2k-district/mapserver?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  37. // 淡雅蓝
  38. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-shanghai-white-blue-sh2000/mapserver?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  39. // 调用了测绘院底图
  40. url: "http://10.242.181.28:8080/OneMapServer/rest/services/shmap_anhei/MapServer?token=HL2a2mO-uVdVvkeeX25BUL5cFIc2Q_FFlowrNYTWcBWOlJNoZWhUUOSQN0e6LG6S",
  41. // url:"http://aimap.pudong.sh:5236/maps/rest/services/darkmap-f/proxy",
  42. // minZoom: 1,
  43. // maxZoom: 12,
  44. },
  45. // 遥感影像图的相关配置项
  46. imageryLayer: {
  47. crs: "",
  48. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  49. // 按照宝石蓝底图分辨率
  50. // resolutions: [
  51. // 132.29166666666666, 52.916666666666664, 26.458333333333332,
  52. // 13.229166666666666, 5.291666666666666, 2.645833333333333,
  53. // 1.3229166666666665, 0.5291666666666666, 0.2645833333333333,
  54. // 0.13229166666666664,
  55. // ],
  56. //
  57. //529.167725002116, 264.583862501058
  58. // 按照测绘院分辨率虚拟的
  59. resolutions: [
  60. 132.2919312505292, 52.91677250021167,
  61. 26.458386250105836, 13.229193125052918, 5.291677250021167,
  62. 2.6458386250105836, 1.3229193125052918, 0.5291677250021167,
  63. 0.26458386250105836, 0.13229193125052918, 0.0529167725002,
  64. 0.0264583862501, 0.0132291931251, 0.00529167725, 0.002645838625,
  65. 0.0013229193125,
  66. ],
  67. // minZoom: 0,
  68. // maxZoom: 14,
  69. },
  70. imageryLayerSat2022s2: {
  71. crs: "",
  72. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s1/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  73. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  74. },
  75. };
  76. //地图全局变量声明
  77. var map2DViewer = {
  78. baseMapCollection: [],
  79. markers: {},
  80. polygons: {},
  81. polylines: {},
  82. circles: {},
  83. map: null,
  84. maps: [],
  85. jlMap: null,
  86. jlControl: {},
  87. layers: {},
  88. groups: {},
  89. // 我的标记
  90. myLabels: {},
  91. overlay: {},
  92. analysisGroups: {},
  93. uploadGroups: {},
  94. };
  95. // 预设模型图层名称
  96. var defaultModelNameMap = new Map();
  97. // 存放我的标记名称
  98. // key:疑点名称;data:stringify后的geojson数据
  99. var myLabelNameMap = new Map();
  100. // 存储各镇域中心区域位置
  101. var townLocationMap = new Map();
  102. townLocationMap.set("全部", [31.14785322514787, 121.50195320451814]);
  103. // 各镇域几何体 -- 方便定位
  104. var townPolygonMap = new Map();
  105. // 自定义模型id集合
  106. var customModelIdMap = new Map();
  107. // 上传数据集合
  108. var uploadDataIdArr = [];
  109. // 图层有权限与否集合
  110. var layerAuthorityMap = new Map();
  111. // 图斑固定颜色数组
  112. var targetColor = [
  113. [255, 165, 0],
  114. [255, 69, 0],
  115. [153, 50, 204],
  116. [176, 224, 230],
  117. [255, 20, 147],
  118. [240, 230, 140],
  119. [255, 192, 203],
  120. [0, 255, 0],
  121. [255, 160, 122],
  122. [240, 128, 128],
  123. [255, 165, 0],
  124. [65, 105, 225],
  125. [147, 112, 219],
  126. [139, 0, 139],
  127. [220, 20, 60],
  128. [199, 21, 133],
  129. ];
  130. // 疑点,非疑点下的图斑颜色设置
  131. var caseColorChange = {
  132. isPointColor: [0, 230, 255],
  133. notPointColor: [0, 100, 240],
  134. };