config.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. // 暂时无法使用
  18. // token: "65463DEE-620A-0ED5-2385-17ECD07CD351", //公共地图资源token
  19. // mapService: "http://121.43.55.7:10011/proxy/", //地图服务,
  20. blueBlackMap: {
  21. crs: "",
  22. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/basemap-shanghai-gem-blue-sh2000/mapserver?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  23. resolutions: [
  24. 529.1666666666666, 264.5833333333333, 132.29166666666666,
  25. 52.916666666666664, 26.458333333333332, 13.229166666666666,
  26. 5.291666666666666, 2.645833333333333, 1.3229166666666665,
  27. 0.5291666666666666, 0.2645833333333333, 0.13229166666666664,
  28. ],
  29. minZoom: 1,
  30. maxZoom: 12,
  31. },
  32. // 遥感影像图的相关配置项
  33. imageryLayer: {
  34. crs: "",
  35. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2019s1/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  36. resolutions: [
  37. 132.2919312505292, 52.91677250021167, 26.458386250105836,
  38. 13.229193125052918, 5.291677250021167, 2.6458386250105836,
  39. 1.3229193125052918, 0.5291677250021167, 0.26458386250105836,
  40. 0.13229193125052918,
  41. ],
  42. minZoom: 0,
  43. maxZoom: 7,
  44. },
  45. imageryLayerSat2018s2: {
  46. crs: "",
  47. url: "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2018s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  48. resolutions: [
  49. 132.2919312505292, 52.91677250021167, 26.458386250105836,
  50. 13.229193125052918, 5.291677250021167, 2.6458386250105836,
  51. 1.3229193125052918, 0.5291677250021167, 0.26458386250105836,
  52. 0.13229193125052918,
  53. ],
  54. minZoom: 0,
  55. maxZoom: 7,
  56. },
  57. };
  58. //地图全局变量声明
  59. var map2DViewer = {
  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. };
  75. // 预设模型图层名称
  76. var defaultModelNameMap = new Map();
  77. // 存放我的标记名称
  78. // key:疑点名称;data:stringify后的geojson数据
  79. var myLabelNameMap = new Map();
  80. // 存储各镇域中心区域位置
  81. var townLocationMap = new Map();
  82. townLocationMap.set("全部", [31.14785322514787, 121.50195320451814]);
  83. // 各镇域几何体 -- 方便定位
  84. var townPolygonMap = new Map();
  85. // 自定义模型id集合
  86. var customModelIdMap = new Map();
  87. // 上传数据集合
  88. var uploadDataIdArr = [];
  89. // 图层有权限与否集合
  90. var layerAuthorityMap = new Map();