config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.1920,
  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. "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2018s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  22. imageryLayer:
  23. "http://aimap.pudong.sh:5236/zjmap/reproduction-service/maps/rest/services/sat-2019s2/proxy?AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM",
  24. };
  25. //地图全局变量声明
  26. var map2DViewer = {
  27. markers: {},
  28. polygons: {},
  29. polylines: {},
  30. circles: {},
  31. map: null,
  32. maps: [],
  33. jlMap: null,
  34. jlControl: {},
  35. layers: {},
  36. groups: {},
  37. // 我的标记
  38. myLabels: {},
  39. overlay: {},
  40. analysisGroups: {},
  41. };
  42. // 预设模型图层名称
  43. var defaultModelNameMap = new Map();
  44. // 存放我的标记名称
  45. // key:疑点名称;data:stringify后的geojson数据
  46. var myLabelNameMap = new Map();
  47. // 存储各镇域中心区域位置
  48. var townLocationMap = new Map();
  49. townLocationMap.set("全部", [31.14785322514787, 121.50195320451814]);
  50. // 各镇域几何体 -- 方便定位
  51. var townPolygonMap = new Map();
  52. // 自定义模型id集合
  53. var customModelIdMap = new Map();
  54. // 上传数据集合
  55. var uploadDataIdArr = [];
  56. // 图层有权限与否集合
  57. var layerAuthorityMap = new Map();