config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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.192,
  11. // 纬度偏移校正值 -- WGS84转上海2000
  12. latCorrectParams:0,
  13. // latCorrectParams: -0.00018,
  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",
  21. },
  22. // 暂时无法使用
  23. // token: "65463DEE-620A-0ED5-2385-17ECD07CD351", //公共地图资源token
  24. // mapService: "http://121.43.55.7:10011/proxy/", //地图服务,
  25. blueBlackMap: {
  26. crs: "",
  27. // 政务图--无法查看
  28. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-as/proxy",
  29. // 地形图 -- 无法看
  30. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/dlg-fullcolor/proxy",
  31. // 调用了测绘院底图
  32. url: "http://10.242.181.28:8080/OneMapServer/rest/services/shmap_anhei/MapServer?token=xvdp5nmSa6UoSQf20x7sk4l2DDQNicrUHaVrvm40k9cf-Iy8Z_rHGAMty2ZFIqH_",
  33. // url:"http://aimap.pudong.sh:5236/maps/rest/services/darkmap-f/proxy",
  34. // minZoom: 1,
  35. // maxZoom: 12,
  36. },
  37. // 遥感影像图的相关配置项
  38. imageryLayer: {
  39. crs: "",
  40. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  41. resolutions: [
  42. 132.2919312505292, 52.91677250021167, 26.458386250105836,
  43. 13.229193125052918, 5.291677250021167, 2.6458386250105836,
  44. 1.3229193125052918, 0.5291677250021167, 0.26458386250105836,
  45. 0.13229193125052918, 0.0529167725002, 0.0264583862501, 0.0132291931251,
  46. 0.00529167725, 0.002645838625, 0.0013229193125,
  47. ],
  48. minZoom: 0,
  49. maxZoom: 14,
  50. },
  51. imageryLayerSat2022s2: {
  52. crs: "",
  53. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s1/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  54. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  55. },
  56. };
  57. //地图全局变量声明
  58. var map2DViewer = {
  59. baseMapCollection: [],
  60. markers: {},
  61. polygons: {},
  62. polylines: {},
  63. circles: {},
  64. map: null,
  65. maps: [],
  66. jlMap: null,
  67. jlControl: {},
  68. layers: {},
  69. groups: {},
  70. // 我的标记
  71. myLabels: {},
  72. overlay: {},
  73. analysisGroups: {},
  74. uploadGroups: {},
  75. };
  76. // 预设模型图层名称
  77. var defaultModelNameMap = new Map();
  78. // 存放我的标记名称
  79. // key:疑点名称;data:stringify后的geojson数据
  80. var myLabelNameMap = new Map();
  81. // 存储各镇域中心区域位置
  82. var townLocationMap = new Map();
  83. townLocationMap.set("全部", [31.14785322514787, 121.50195320451814]);
  84. // 各镇域几何体 -- 方便定位
  85. var townPolygonMap = new Map();
  86. // 自定义模型id集合
  87. var customModelIdMap = new Map();
  88. // 上传数据集合
  89. var uploadDataIdArr = [];
  90. // 图层有权限与否集合
  91. var layerAuthorityMap = new Map();
  92. // 图斑固定颜色数组
  93. var targetColor = [
  94. [255, 165, 0],
  95. [255, 69, 0],
  96. [153, 50, 204],
  97. [176, 224, 230],
  98. [255, 20, 147],
  99. [240, 230, 140],
  100. [255, 192, 203],
  101. [0, 255, 0],
  102. [255, 160, 122],
  103. [240, 128, 128],
  104. [255, 165, 0],
  105. [65, 105, 225],
  106. [147, 112, 219],
  107. [139, 0, 139],
  108. [220, 20, 60],
  109. [199, 21, 133],
  110. ];
  111. // 疑点,非疑点下的图斑颜色设置
  112. var caseColorChange = {
  113. "isPointColor":[0, 230, 255],
  114. "notPointColor":[0, 100, 240],
  115. }