config.js 3.7 KB

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