config.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /**
  2. * @fileoverview 应用配置文件
  3. * @version 1.0.8
  4. */
  5. /**
  6. * 版本号
  7. */
  8. var onemapVersion = '1.2.2'; //+'-'+(new Date()).getTime();
  9. /**
  10. * map引擎配置
  11. */
  12. var map23DConfig = {
  13. //2D地图最小缩放等级
  14. map2DMinZoom: 2,
  15. //2D地图最大缩放等级
  16. map2DMaxZoom: 19,
  17. //3D瓦片图片类型
  18. imageType: 'png',
  19. //3D瓦片范围
  20. layerBounds: [
  21. [90, -180],
  22. [-90, 180]
  23. ], //左上角 右下角,
  24. //23D资源文件
  25. map23DAssetsUrl: 'http://localhost:10152', //+ 文件名
  26. //图层最大数量限制
  27. layerMaxLength: 10,
  28. //网络类型1:离线,2:在线
  29. netType: 2,
  30. atlas: true, //海量地图库
  31. sanweiMenu: true, //三维场景
  32. clockLocal: true, //是否用本地时间
  33. };
  34. /**
  35. * 应用Url配置
  36. * @type {Object}
  37. */
  38. var onemapUrlConfig = {
  39. //域名
  40. siteUrl: 'http://localhost:10152',
  41. //DMS
  42. DMS_URL: "/proxy_dms",
  43. OAUTH_URL: "/proxy_auth",
  44. columnConfig: {
  45. vector: {
  46. id: 1410,
  47. },
  48. raster: {
  49. id: 1417,
  50. },
  51. model: {
  52. id: 1416,
  53. },
  54. },
  55. //图层配置
  56. customizeLayer: {
  57. // gr: "http://121.43.55.7:10011/proxy?servertype=World_Imagery&token=622067E9-93E5-D8EC-E677-85B58A63C0C7", // 2000
  58. gr: "https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer", // 2000
  59. gt: "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer",
  60. gm: "http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer"
  61. },
  62. //系统名称
  63. //systemName: '全息地理信息系统',
  64. // systemName: '大数据可视化平台',
  65. systemName: '地图数据可视化系统',
  66. //系统logo
  67. systemLogoUrl: 'http://localhost:10152/images/layout/logo-offline.png',
  68. //版权
  69. systemCopy: '-',
  70. //默认全局设置
  71. defaultGlobalSettingData: {
  72. "baseMap2D": {
  73. "center": {
  74. "lat": 39.9,
  75. "lng": 116.37
  76. },
  77. "type": 2,
  78. "zoom": 4
  79. },
  80. "map2DThematicSetting": [],
  81. "map2DThematicCategory": [],
  82. "baseMap3D": {
  83. "map3DDEM": "http://mt.mapplus.cn/v1.0/dem?z=%d&x=%d&y=%d",
  84. "map3DName": "http://119.3.233.75:5050/v1.0/name?x={x}&y={y}&z={z}"
  85. },
  86. "map3DModelSettingCategory": [],
  87. "map3DModelSetting": [
  88. {
  89. "category": "倾斜摄影",
  90. "info": "",
  91. "type": "qxData",
  92. "name": "蟠龙天地建筑",
  93. "url": "http://121.43.55.7:10011/proxy/tileset.json?servertype=ppl_jz&token=622067E9-93E5-D8EC-E677-85B58A63C0C7"
  94. }, {
  95. "category": "倾斜摄影",
  96. "info": "",
  97. "type": "qxData",
  98. "name": "蟠龙天地水系",
  99. "url": "http://121.43.55.7:10011/proxy/tileset.json?servertype=ppl_sx&token=622067E9-93E5-D8EC-E677-85B58A63C0C7"
  100. }, {
  101. "category": "倾斜摄影",
  102. "info": "",
  103. "type": "qxData",
  104. "name": "蟠龙天地地面",
  105. "url": "http://121.43.55.7:10011/proxy/tileset.json?servertype=ppl_dm&token=622067E9-93E5-D8EC-E677-85B58A63C0C7"
  106. }, {
  107. "category": "倾斜摄影",
  108. "info": "",
  109. "type": "qxData",
  110. "name": "蟠龙天地小品",
  111. "url": "http://121.43.55.7:10011/proxy/tileset.json?servertype=ppl_xp&token=622067E9-93E5-D8EC-E677-85B58A63C0C7"
  112. }
  113. ],
  114. "importantGoalsCategory": [],
  115. "importantGoalsSetting": [],
  116. },
  117. //底图类型设置
  118. defaultTypes: [{
  119. "name": "影像图",
  120. "id": "gr",
  121. "imgurl": "../images/layout/yingxiang.png"
  122. }, {
  123. "name": "地势图",
  124. "id": "gt",
  125. "imgurl": "../images/layout/dishi.png"
  126. }, {
  127. "name": "线划图",
  128. "id": "gm",
  129. "imgurl": "../images/layout/jiaot.png"
  130. }],
  131. };