@esri/solutions-components 0.4.11 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/cjs/buffer-tools_6.cjs.entry.js +83 -83
  2. package/dist/cjs/calcite-combobox_3.cjs.entry.js +61 -61
  3. package/dist/cjs/calcite-input-message_5.cjs.entry.js +282 -282
  4. package/dist/cjs/{downloadUtils-bb998aa8.js → downloadUtils-415ab342.js} +1093 -1093
  5. package/dist/cjs/{index.es-b1ff1b6a.js → index.es-98008aa0.js} +10682 -10682
  6. package/dist/cjs/layer-table.cjs.entry.js +22 -22
  7. package/dist/cjs/{mapViewUtils-d250b1ed.js → mapViewUtils-f617ae9a.js} +33 -41
  8. package/dist/cjs/public-notification.cjs.entry.js +24 -24
  9. package/dist/collection/utils/queryUtils.js +9 -17
  10. package/dist/collection/utils/queryUtils.ts +9 -17
  11. package/dist/components/queryUtils.js +19 -27
  12. package/dist/esm/buffer-tools_6.entry.js +74 -74
  13. package/dist/esm/calcite-combobox_3.entry.js +55 -55
  14. package/dist/esm/calcite-input-message_5.entry.js +274 -274
  15. package/dist/esm/{downloadUtils-2ed29d75.js → downloadUtils-606b0f0e.js} +1089 -1089
  16. package/dist/esm/{index.es-edc28958.js → index.es-c736c805.js} +10596 -10596
  17. package/dist/esm/layer-table.entry.js +18 -18
  18. package/dist/esm/{mapViewUtils-02696ab6.js → mapViewUtils-4e945e07.js} +21 -29
  19. package/dist/esm/public-notification.entry.js +20 -20
  20. package/dist/solutions-components/{p-f808f3bc.entry.js → p-308e24cc.entry.js} +6 -6
  21. package/dist/solutions-components/{p-25665c66.entry.js → p-570b076b.entry.js} +17 -17
  22. package/dist/solutions-components/{p-335fce8c.entry.js → p-5ee7b022.entry.js} +11 -11
  23. package/dist/solutions-components/{p-375face5.js → p-6a657ff6.js} +436 -436
  24. package/dist/solutions-components/{p-d9c18211.js → p-72117a18.js} +60 -60
  25. package/dist/solutions-components/{p-53836566.entry.js → p-84bbaebf.entry.js} +6 -6
  26. package/dist/solutions-components/p-88e28de2.js +36 -0
  27. package/dist/solutions-components/{p-728a1fc6.entry.js → p-ac76d270.entry.js} +16 -16
  28. package/dist/solutions-components/solutions-components.esm.js +6 -6
  29. package/dist/solutions-components/utils/queryUtils.ts +9 -17
  30. package/package.json +1 -1
  31. package/dist/solutions-components/p-1bfd07e3.js +0 -36
@@ -1,22 +1,22 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- const index = require('./index-c6979cbb.js');
11
- const locale = require('./locale-04da9a8c.js');
12
- const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
13
- const downloadUtils = require('./downloadUtils-bb998aa8.js');
14
- require('./_commonjsHelpers-384729db.js');
15
- require('./interfaces-17c631bf.js');
16
- require('./loadModules-0806a34f.js');
17
-
18
- const layerTableCss = ":host{display:block}.table{display:table;width:100%}.header{display:table-header-group;background-color:#757575;font-weight:500;font-size:var(--calcite-font-size-0);color:var(--calcite-ui-text-inverse);position:sticky;top:0;z-index:1}.table-header-cell{display:table-cell;text-align:justify;border-right:1px solid var(--calcite-ui-border-2);padding:0.5rem}.table-body{display:table-row-group}.row{display:table-row}.table-cell{display:table-cell;padding:0.5rem}.display-table-header{display:table-header-group}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.justify-center{justify-content:center}.table-container{width:100%}.overflow-auto{overflow:auto}.data-container{overflow:auto;height:calc(100% - 35px)}.row:nth-child(odd){background:var(--calcite-ui-foreground-3)}.padding-3-4{padding:0.75rem}.field-width{white-space:nowrap;min-width:300px;max-width:300px;overflow:hidden}";
19
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-c6979cbb.js');
11
+ const locale = require('./locale-04da9a8c.js');
12
+ const mapViewUtils = require('./mapViewUtils-f617ae9a.js');
13
+ const downloadUtils = require('./downloadUtils-415ab342.js');
14
+ require('./_commonjsHelpers-384729db.js');
15
+ require('./interfaces-17c631bf.js');
16
+ require('./loadModules-0806a34f.js');
17
+
18
+ const layerTableCss = ":host{display:block}.table{display:table;width:100%}.header{display:table-header-group;background-color:#757575;font-weight:500;font-size:var(--calcite-font-size-0);color:var(--calcite-ui-text-inverse);position:sticky;top:0;z-index:1}.table-header-cell{display:table-cell;text-align:justify;border-right:1px solid var(--calcite-ui-border-2);padding:0.5rem}.table-body{display:table-row-group}.row{display:table-row}.table-cell{display:table-cell;padding:0.5rem}.display-table-header{display:table-header-group}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-ui-border-2)}.justify-center{justify-content:center}.table-container{width:100%}.overflow-auto{overflow:auto}.data-container{overflow:auto;height:calc(100% - 35px)}.row:nth-child(odd){background:var(--calcite-ui-foreground-3)}.padding-3-4{padding:0.75rem}.field-width{white-space:nowrap;min-width:300px;max-width:300px;overflow:hidden}";
19
+
20
20
  const LayerTable = class {
21
21
  constructor(hostRef) {
22
22
  index.registerInstance(this, hostRef);
@@ -312,6 +312,6 @@ const LayerTable = class {
312
312
  }
313
313
  get el() { return index.getElement(this); }
314
314
  };
315
- LayerTable.style = layerTableCss;
316
-
317
- exports.layer_table = LayerTable;
315
+ LayerTable.style = layerTableCss;
316
+
317
+ exports.layer_table = LayerTable;
@@ -1,12 +1,12 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- const interfaces = require('./interfaces-17c631bf.js');
9
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ const interfaces = require('./interfaces-17c631bf.js');
9
+
10
10
  /** @license
11
11
  * Copyright 2022 Esri
12
12
  *
@@ -33,15 +33,11 @@ const interfaces = require('./interfaces-17c631bf.js');
33
33
  */
34
34
  async function queryAllFeatures(start, layer, graphics) {
35
35
  const num = layer.capabilities.query.maxRecordCount;
36
- const query = {
37
- start,
38
- num,
39
- outFields: ["*"],
40
- // TODO think through this more...does this make sense
41
- // may be better to fetch when checkbox is clicked...
42
- returnGeometry: true,
43
- where: "1=1"
44
- };
36
+ const query = layer.createQuery();
37
+ query.start = start;
38
+ query.num = num;
39
+ // TODO think through this once I'm back on crowdsource...seems like we may want an arg to control this
40
+ query.where = layer.definitionExpression || "1=1";
45
41
  const result = await layer.queryFeatures(query);
46
42
  graphics = graphics.concat(result.features);
47
43
  return result.exceededTransferLimit ?
@@ -78,7 +74,6 @@ async function queryObjectIds(geometries, layer) {
78
74
  */
79
75
  async function queryFeaturesByID(ids, layer) {
80
76
  const q = layer.createQuery();
81
- q.outFields = ["*"];
82
77
  q.objectIds = ids;
83
78
  return layer.queryFeatures(q);
84
79
  }
@@ -94,13 +89,10 @@ async function queryFeaturesByID(ids, layer) {
94
89
  */
95
90
  async function queryFeaturesByGeometry(start, layer, geometry, featuresCollection) {
96
91
  const num = layer.capabilities.query.maxRecordCount;
97
- const query = {
98
- start,
99
- num,
100
- outFields: ["*"],
101
- returnGeometry: true,
102
- geometry
103
- };
92
+ const query = layer.createQuery();
93
+ query.start = start;
94
+ query.num = num;
95
+ query.geometry = geometry;
104
96
  const result = await layer.queryFeatures(query);
105
97
  featuresCollection[layer.id] = featuresCollection[layer.id].concat(result.features);
106
98
  return result.exceededTransferLimit ?
@@ -184,8 +176,8 @@ async function _intersectQuery(geometry, layer) {
184
176
  q.spatialRelationship = "intersects";
185
177
  q.geometry = geometry;
186
178
  return layer.queryObjectIds(q);
187
- }
188
-
179
+ }
180
+
189
181
  /** @license
190
182
  * Copyright 2022 Esri
191
183
  *
@@ -324,16 +316,16 @@ async function goToSelection(ids, layerView, mapView, flashFeatures = true, feat
324
316
  if (flashFeatures) {
325
317
  await flashSelection(ids, layerView, featureEffect);
326
318
  }
327
- }
328
-
329
- exports.getMapLayerHash = getMapLayerHash;
330
- exports.getMapLayerIds = getMapLayerIds;
331
- exports.getMapLayerView = getMapLayerView;
332
- exports.getQueryGeoms = getQueryGeoms;
333
- exports.getSelectionSetQuery = getSelectionSetQuery;
334
- exports.goToSelection = goToSelection;
335
- exports.highlightFeatures = highlightFeatures;
336
- exports.queryAllFeatures = queryAllFeatures;
337
- exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
338
- exports.queryFeaturesByID = queryFeaturesByID;
339
- exports.queryObjectIds = queryObjectIds;
319
+ }
320
+
321
+ exports.getMapLayerHash = getMapLayerHash;
322
+ exports.getMapLayerIds = getMapLayerIds;
323
+ exports.getMapLayerView = getMapLayerView;
324
+ exports.getQueryGeoms = getQueryGeoms;
325
+ exports.getSelectionSetQuery = getSelectionSetQuery;
326
+ exports.goToSelection = goToSelection;
327
+ exports.highlightFeatures = highlightFeatures;
328
+ exports.queryAllFeatures = queryAllFeatures;
329
+ exports.queryFeaturesByGeometry = queryFeaturesByGeometry;
330
+ exports.queryFeaturesByID = queryFeaturesByID;
331
+ exports.queryObjectIds = queryObjectIds;
@@ -1,24 +1,24 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- 'use strict';
7
-
8
- Object.defineProperty(exports, '__esModule', { value: true });
9
-
10
- const index = require('./index-c6979cbb.js');
11
- const interfaces = require('./interfaces-17c631bf.js');
12
- const loadModules = require('./loadModules-0806a34f.js');
13
- const mapViewUtils = require('./mapViewUtils-d250b1ed.js');
14
- const publicNotificationStore = require('./publicNotificationStore-20e924f5.js');
15
- const locale = require('./locale-04da9a8c.js');
16
- const publicNotificationUtils = require('./publicNotificationUtils-9d585d8d.js');
17
- require('./index-763f87ac.js');
18
- require('./_commonjsHelpers-384729db.js');
19
-
20
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
21
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ 'use strict';
7
+
8
+ Object.defineProperty(exports, '__esModule', { value: true });
9
+
10
+ const index = require('./index-c6979cbb.js');
11
+ const interfaces = require('./interfaces-17c631bf.js');
12
+ const loadModules = require('./loadModules-0806a34f.js');
13
+ const mapViewUtils = require('./mapViewUtils-f617ae9a.js');
14
+ const publicNotificationStore = require('./publicNotificationStore-20e924f5.js');
15
+ const locale = require('./locale-04da9a8c.js');
16
+ const publicNotificationUtils = require('./publicNotificationUtils-9d585d8d.js');
17
+ require('./index-763f87ac.js');
18
+ require('./_commonjsHelpers-384729db.js');
19
+
20
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-3{width:33.3%}.w-1-4{width:25%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.main-label{float:left}html[dir=\"rtl\"] .main-label{float:right}.back-label:hover{cursor:pointer;color:var(--calcite-ui-brand-hover)}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.margin-side-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.border-top{border-top:1px solid var(--calcite-ui-border-2)}.w-100{width:100%}.w-50{width:50%}.padding-1-2{padding:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.num-selected{align-items:center;display:flex}";
21
+
22
22
  const PublicNotification = class {
23
23
  constructor(hostRef) {
24
24
  index.registerInstance(this, hostRef);
@@ -725,6 +725,6 @@ const PublicNotification = class {
725
725
  "_pageType": ["pageTypeWatchHandler"]
726
726
  }; }
727
727
  };
728
- PublicNotification.style = publicNotificationCss;
729
-
730
- exports.public_notification = PublicNotification;
728
+ PublicNotification.style = publicNotificationCss;
729
+
730
+ exports.public_notification = PublicNotification;
@@ -30,15 +30,11 @@ import { EWorkflowType } from "./interfaces";
30
30
  */
31
31
  export async function queryAllFeatures(start, layer, graphics) {
32
32
  const num = layer.capabilities.query.maxRecordCount;
33
- const query = {
34
- start,
35
- num,
36
- outFields: ["*"],
37
- // TODO think through this more...does this make sense
38
- // may be better to fetch when checkbox is clicked...
39
- returnGeometry: true,
40
- where: "1=1"
41
- };
33
+ const query = layer.createQuery();
34
+ query.start = start;
35
+ query.num = num;
36
+ // TODO think through this once I'm back on crowdsource...seems like we may want an arg to control this
37
+ query.where = layer.definitionExpression || "1=1";
42
38
  const result = await layer.queryFeatures(query);
43
39
  graphics = graphics.concat(result.features);
44
40
  return result.exceededTransferLimit ?
@@ -75,7 +71,6 @@ export async function queryObjectIds(geometries, layer) {
75
71
  */
76
72
  export async function queryFeaturesByID(ids, layer) {
77
73
  const q = layer.createQuery();
78
- q.outFields = ["*"];
79
74
  q.objectIds = ids;
80
75
  return layer.queryFeatures(q);
81
76
  }
@@ -91,13 +86,10 @@ export async function queryFeaturesByID(ids, layer) {
91
86
  */
92
87
  export async function queryFeaturesByGeometry(start, layer, geometry, featuresCollection) {
93
88
  const num = layer.capabilities.query.maxRecordCount;
94
- const query = {
95
- start,
96
- num,
97
- outFields: ["*"],
98
- returnGeometry: true,
99
- geometry
100
- };
89
+ const query = layer.createQuery();
90
+ query.start = start;
91
+ query.num = num;
92
+ query.geometry = geometry;
101
93
  const result = await layer.queryFeatures(query);
102
94
  featuresCollection[layer.id] = featuresCollection[layer.id].concat(result.features);
103
95
  return result.exceededTransferLimit ?
@@ -31,15 +31,11 @@ export async function queryAllFeatures(
31
31
  graphics: __esri.Graphic[]
32
32
  ): Promise<__esri.Graphic[]> {
33
33
  const num = layer.capabilities.query.maxRecordCount;
34
- const query = {
35
- start,
36
- num,
37
- outFields: ["*"],
38
- // TODO think through this more...does this make sense
39
- // may be better to fetch when checkbox is clicked...
40
- returnGeometry: true,
41
- where: "1=1"
42
- };
34
+ const query = layer.createQuery();
35
+ query.start = start;
36
+ query.num = num;
37
+ // TODO think through this once I'm back on crowdsource...seems like we may want an arg to control this
38
+ query.where = layer.definitionExpression || "1=1";
43
39
 
44
40
  const result = await layer.queryFeatures(query);
45
41
 
@@ -89,7 +85,6 @@ export async function queryObjectIds(
89
85
  layer: __esri.FeatureLayer
90
86
  ): Promise<__esri.FeatureSet> {
91
87
  const q = layer.createQuery();
92
- q.outFields = ["*"];
93
88
  q.objectIds = ids;
94
89
  return layer.queryFeatures(q);
95
90
  }
@@ -111,13 +106,10 @@ export async function queryFeaturesByGeometry(
111
106
  featuresCollection: {[key: string]: __esri.Graphic[]}
112
107
  ): Promise<{[key: string]: __esri.Graphic[]}> {
113
108
  const num = layer.capabilities.query.maxRecordCount;
114
- const query = {
115
- start,
116
- num,
117
- outFields: ["*"],
118
- returnGeometry: true,
119
- geometry
120
- };
109
+ const query = layer.createQuery();
110
+ query.start = start;
111
+ query.num = num;
112
+ query.geometry = geometry;
121
113
 
122
114
  const result = await layer.queryFeatures(query);
123
115
  featuresCollection[layer.id] = featuresCollection[layer.id].concat(
@@ -1,10 +1,10 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import { c as EWorkflowType } from './interfaces3.js';
7
-
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import { c as EWorkflowType } from './interfaces3.js';
7
+
8
8
  /** @license
9
9
  * Copyright 2022 Esri
10
10
  *
@@ -31,15 +31,11 @@ import { c as EWorkflowType } from './interfaces3.js';
31
31
  */
32
32
  async function queryAllFeatures(start, layer, graphics) {
33
33
  const num = layer.capabilities.query.maxRecordCount;
34
- const query = {
35
- start,
36
- num,
37
- outFields: ["*"],
38
- // TODO think through this more...does this make sense
39
- // may be better to fetch when checkbox is clicked...
40
- returnGeometry: true,
41
- where: "1=1"
42
- };
34
+ const query = layer.createQuery();
35
+ query.start = start;
36
+ query.num = num;
37
+ // TODO think through this once I'm back on crowdsource...seems like we may want an arg to control this
38
+ query.where = layer.definitionExpression || "1=1";
43
39
  const result = await layer.queryFeatures(query);
44
40
  graphics = graphics.concat(result.features);
45
41
  return result.exceededTransferLimit ?
@@ -76,7 +72,6 @@ async function queryObjectIds(geometries, layer) {
76
72
  */
77
73
  async function queryFeaturesByID(ids, layer) {
78
74
  const q = layer.createQuery();
79
- q.outFields = ["*"];
80
75
  q.objectIds = ids;
81
76
  return layer.queryFeatures(q);
82
77
  }
@@ -92,13 +87,10 @@ async function queryFeaturesByID(ids, layer) {
92
87
  */
93
88
  async function queryFeaturesByGeometry(start, layer, geometry, featuresCollection) {
94
89
  const num = layer.capabilities.query.maxRecordCount;
95
- const query = {
96
- start,
97
- num,
98
- outFields: ["*"],
99
- returnGeometry: true,
100
- geometry
101
- };
90
+ const query = layer.createQuery();
91
+ query.start = start;
92
+ query.num = num;
93
+ query.geometry = geometry;
102
94
  const result = await layer.queryFeatures(query);
103
95
  featuresCollection[layer.id] = featuresCollection[layer.id].concat(result.features);
104
96
  return result.exceededTransferLimit ?
@@ -182,6 +174,6 @@ async function _intersectQuery(geometry, layer) {
182
174
  q.spatialRelationship = "intersects";
183
175
  q.geometry = geometry;
184
176
  return layer.queryObjectIds(q);
185
- }
186
-
187
- export { queryExtent as a, queryObjectIds as b, getQueryGeoms as c, queryFeaturesByGeometry as d, queryFeaturesByID as e, getSelectionSetQuery as g, queryAllFeatures as q };
177
+ }
178
+
179
+ export { queryExtent as a, queryObjectIds as b, getQueryGeoms as c, queryFeaturesByGeometry as d, queryFeaturesByID as e, getSelectionSetQuery as g, queryAllFeatures as q };