config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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,
  41. 52.91677250021167,
  42. 26.458386250105836,
  43. 13.229193125052918,
  44. 5.291677250021167,
  45. 2.6458386250105836,
  46. 1.3229193125052918,
  47. 0.5291677250021167,
  48. 0.26458386250105836,
  49. 0.13229193125052918,
  50. ],
  51. minZoom: 0,
  52. maxZoom: 9,
  53. },
  54. imageryLayerSat2018s2: {
  55. crs: "",
  56. // url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2022s1/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  57. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2018s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  58. resolutions: [
  59. 132.2919312505292, 52.91677250021167, 26.458386250105836,
  60. 13.229193125052918, 5.291677250021167, 2.6458386250105836,
  61. 1.3229193125052918, 0.5291677250021167, 0.26458386250105836,
  62. 0.13229193125052918,
  63. ],
  64. minZoom: 0,
  65. maxZoom: 9,//7
  66. },
  67. };
  68. //地图全局变量声明
  69. var map2DViewer = {
  70. baseMapCollection: [],
  71. markers: {},
  72. polygons: {},
  73. polylines: {},
  74. circles: {},
  75. map: null,
  76. maps: [],
  77. jlMap: null,
  78. jlControl: {},
  79. layers: {},
  80. groups: {},
  81. // 我的标记
  82. myLabels: {},
  83. overlay: {},
  84. analysisGroups: {},
  85. uploadGroups: {},
  86. };
  87. // 预设模型图层名称
  88. var defaultModelNameMap = new Map();
  89. // 存放我的标记名称
  90. // key:疑点名称;data:stringify后的geojson数据
  91. var myLabelNameMap = new Map();
  92. // 存储各镇域中心区域位置
  93. var townLocationMap = new Map();
  94. townLocationMap.set("全部", [31.14785322514787, 121.50195320451814]);
  95. // 各镇域几何体 -- 方便定位
  96. var townPolygonMap = new Map();
  97. // 自定义模型id集合
  98. var customModelIdMap = new Map();
  99. // 上传数据集合
  100. var uploadDataIdArr = [];
  101. // 图层有权限与否集合
  102. var layerAuthorityMap = new Map();
  103. // 图斑固定颜色数组
  104. var targetColor = [
  105. [255, 165, 0],
  106. [255, 69, 0],
  107. [153, 50, 204],
  108. [176, 224, 230],
  109. [255, 20, 147],
  110. [240, 230, 140],
  111. [255, 192, 203],
  112. [0, 255, 0],
  113. [255, 160, 122],
  114. [240, 128, 128],
  115. [255, 165, 0],
  116. [65, 105, 225],
  117. [147, 112, 219],
  118. [139, 0, 139],
  119. [220, 20, 60],
  120. [199, 21, 133],
  121. ];