geojsonPayload.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. export default {
  20. cache_key: '31946c4488d1899827d283b668d83281',
  21. cached_dttm: '2020-03-04T22:40:59',
  22. cache_timeout: 129600,
  23. error: null,
  24. form_data: {
  25. datasource: '93829__table',
  26. viz_type: 'deck_polygon',
  27. url_params: {},
  28. granularity_sqla: null,
  29. time_range: '100 years ago : ',
  30. line_column: 'geometry',
  31. line_type: 'json',
  32. adhoc_filters: [
  33. {
  34. clause: 'WHERE',
  35. expressionType: 'SIMPLE',
  36. filterOptionName: '4ea1a468-43f9-45f0-9655-576d2ab04bc1',
  37. comparator: '',
  38. operator: 'IS NOT NULL',
  39. subject: 'geometry',
  40. },
  41. ],
  42. metric: 'count',
  43. point_radius_fixed: {
  44. type: 'fix',
  45. value: 1000,
  46. },
  47. row_limit: 1000,
  48. reverse_long_lat: false,
  49. filter_nulls: true,
  50. mapbox_style: 'mapbox://styles/mapbox/light-v9',
  51. viewport: {
  52. longitude: 6.85236157047845,
  53. latitude: 31.222656842808707,
  54. zoom: 1,
  55. bearing: 0,
  56. pitch: 0,
  57. },
  58. autozoom: true,
  59. fill_color_picker: {
  60. r: 0,
  61. g: 122,
  62. b: 135,
  63. a: 1,
  64. },
  65. stroke_color_picker: {
  66. r: 0,
  67. g: 122,
  68. b: 135,
  69. a: 1,
  70. },
  71. filled: true,
  72. stroked: false,
  73. extruded: true,
  74. multiplier: 1,
  75. line_width: 10,
  76. linear_color_scheme: 'blue_white_yellow',
  77. opacity: 80,
  78. num_buckets: 5,
  79. table_filter: false,
  80. toggle_polygons: true,
  81. legend_position: 'tr',
  82. legend_format: null,
  83. js_columns: [],
  84. where: '',
  85. having: '',
  86. filters: [
  87. {
  88. col: 'geometry',
  89. op: 'IS NOT NULL',
  90. val: '',
  91. },
  92. ],
  93. },
  94. is_cached: true,
  95. status: 'success',
  96. stacktrace: null,
  97. rowcount: 1,
  98. data: {
  99. features: [
  100. {
  101. count: 10,
  102. name: 'Test',
  103. polygon: {
  104. type: 'Feature',
  105. properties: {},
  106. geometry: {
  107. type: 'Polygon',
  108. coordinates: [
  109. [
  110. [-149.95132113447022, 61.1310423022678],
  111. [-149.95386039742468, 61.12975642234931],
  112. [-149.9529189574033, 61.128200857856946],
  113. [-149.94943860572158, 61.12793112735274],
  114. [-149.9468993514573, 61.12921688848983],
  115. [-149.94784044016444, 61.1307724989074],
  116. [-149.95132113447022, 61.1310423022678],
  117. ],
  118. ],
  119. },
  120. },
  121. __timestamp: null,
  122. elevation: 0,
  123. },
  124. ],
  125. mapboxApiKey:
  126. 'pk.eyJ1IjoiZ2tlZWUiLCJhIjoiY2lvbmN5dXhtMDA4NXRybTJjZWU2ZHVxOSJ9.CJG_6Oz52y5yI5cr3Ct_aQ',
  127. metricLabels: ['count'],
  128. },
  129. };