mock-layers.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. export const mapLayers = {
  2. code: 0,
  3. message: 'success',
  4. data: {
  5. list: [{
  6. id: 'private_layer',
  7. name: 'Private Layer',
  8. order: 0,
  9. is_distributed: false,
  10. type: 1,
  11. is_lock: false,
  12. create_time: 1634268707424,
  13. elements: [{
  14. id: 'b2370d29-be65-42b0-9224-4d816e86dc64',
  15. name: 'xuejia n. 1',
  16. order: 0,
  17. status: 1,
  18. display: 1,
  19. resource: {
  20. content: {
  21. type: 'Feature',
  22. properties: {
  23. color: '#2D8CF0'
  24. },
  25. geometry: {
  26. type: 'Polygon',
  27. coordinates: [
  28. [
  29. [114.156671, 38.468249],
  30. [114.139517, 37.372177],
  31. [115.52899, 37.712212]
  32. ]
  33. ]
  34. }
  35. },
  36. type: 4,
  37. user_name: 'xuejia n.',
  38. user_id: '1402914943455727616'
  39. },
  40. update_time: 1636966336566,
  41. create_time: 1636966325700,
  42. elevation_load_status: 0,
  43. icon: 'area'
  44. }, {
  45. id: '768e9fcd-121f-47a6-96b9-f1aee27d32f0',
  46. name: 'xuejia n. 1',
  47. order: 0,
  48. status: 1,
  49. display: 1,
  50. resource: {
  51. content: {
  52. type: 'Feature',
  53. properties: {
  54. color: '#2D8CF0'
  55. },
  56. geometry: {
  57. type: 'LineString',
  58. coordinates: [
  59. [116.263962, 40.234929],
  60. [116.503006, 40.237026],
  61. [116.335465, 40.155206],
  62. [116.541458, 40.12371]
  63. ]
  64. }
  65. },
  66. type: 4,
  67. user_name: 'xuejia n.',
  68. user_id: '1402914943455727616'
  69. },
  70. update_time: 1636966322636,
  71. create_time: 1636966316803,
  72. elevation_load_status: 0,
  73. icon: 'line'
  74. }, {
  75. id: '4e741a76-3600-4af5-ace8-d805e7cd31fa',
  76. name: 'xuejia n. 2',
  77. order: 0,
  78. status: 1,
  79. display: 1,
  80. resource: {
  81. content: {
  82. type: 'Feature',
  83. properties: {
  84. color: '#2D8CF0',
  85. clampToGround: true
  86. },
  87. geometry: {
  88. type: 'Point',
  89. coordinates: [116.098223, 39.976538, 104]
  90. }
  91. },
  92. type: 6,
  93. user_name: 'xuejia n.',
  94. user_id: '1402914943455727616'
  95. },
  96. update_time: 1636966305229,
  97. create_time: 1636966305229,
  98. elevation_load_status: 0,
  99. icon: 'pin'
  100. }, {
  101. id: 'efff2b5d-de22-4d48-8d92-4f53170668f6',
  102. name: 'xuejia n. 1',
  103. order: 0,
  104. status: 1,
  105. display: 1,
  106. resource: {
  107. content: {
  108. type: 'Feature',
  109. properties: {
  110. color: '#19BE6B',
  111. clampToGround: true
  112. },
  113. geometry: {
  114. type: 'Point',
  115. coordinates: [113.35367028239645, 23.755194000519843, 22]
  116. }
  117. },
  118. type: 6,
  119. user_name: 'xuejia n.',
  120. user_id: '1402914943455727616'
  121. },
  122. update_time: 1636966304432,
  123. create_time: 1636966299455,
  124. elevation_load_status: 0,
  125. icon: 'pin'
  126. }]
  127. }, {
  128. id: 'share_layer',
  129. name: 'Share Layer',
  130. order: 0,
  131. is_distributed: true,
  132. type: 2,
  133. is_lock: false,
  134. create_time: 1634268707414,
  135. elements: []
  136. }]
  137. }
  138. }