config.js 3.6 KB

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