@corpsmap/corpsmap 3.2.22 → 3.2.23

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.
package/lib/dev.js CHANGED
@@ -106567,7 +106567,7 @@ var config = {
106567
106567
  };
106568
106568
 
106569
106569
  var name = "@corpsmap/corpsmap";
106570
- var version$1 = "3.2.22";
106570
+ var version$1 = "3.2.23";
106571
106571
  var description = "CorpsMap as React Components";
106572
106572
  var main = "index.js";
106573
106573
  var scripts = {
@@ -143041,7 +143041,8 @@ var ArcGisListener = {
143041
143041
  var visibleLayers = store.selectVisibleLayers();
143042
143042
  if (!visibleLayers.length) return callback(null, []);
143043
143043
  var queries = [];
143044
- var identifyFeature = store.doSetIdentifyFeature(); //https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm
143044
+ var identifyFeature = store.doSetIdentifyFeature();
143045
+ var excludedColumns = store.selectIdentifyColumnsExclude(); //https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm
143045
143046
 
143046
143047
  var params = {
143047
143048
  sr: 4326,
@@ -143080,6 +143081,7 @@ var ArcGisListener = {
143080
143081
  var data = JSON.parse(body);
143081
143082
 
143082
143083
  if (data.results.length) {
143084
+ data = identifyColumnsArcgisrest(data, excludedColumns);
143083
143085
  cb(null, {
143084
143086
  dataset: visibleLayer.uid,
143085
143087
  layerName: visibleLayer.displayName,
@@ -162893,6 +162895,7 @@ var bundle$e = {
162893
162895
  if (!booleanDisjoint(identifyFeature, geoJsonFeature)) outFeatures.push(geoJsonFeature);
162894
162896
  });
162895
162897
  outFeatures = identifyColumnsArcgisvector(outFeatures, excludedColumns); //Column Filtering
162898
+ //Fix bug below only acting on layer 0
162896
162899
 
162897
162900
  if (layers[0].identifyFields) {
162898
162901
  outFeatures.forEach(function (feature) {
package/lib/prod.js CHANGED
@@ -106481,7 +106481,7 @@ var config = {
106481
106481
  };
106482
106482
 
106483
106483
  var name = "@corpsmap/corpsmap";
106484
- var version$1 = "3.2.22";
106484
+ var version$1 = "3.2.23";
106485
106485
  var description = "CorpsMap as React Components";
106486
106486
  var main = "index.js";
106487
106487
  var scripts = {
@@ -142955,7 +142955,8 @@ var ArcGisListener = {
142955
142955
  var visibleLayers = store.selectVisibleLayers();
142956
142956
  if (!visibleLayers.length) return callback(null, []);
142957
142957
  var queries = [];
142958
- var identifyFeature = store.doSetIdentifyFeature(); //https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm
142958
+ var identifyFeature = store.doSetIdentifyFeature();
142959
+ var excludedColumns = store.selectIdentifyColumnsExclude(); //https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm
142959
142960
 
142960
142961
  var params = {
142961
142962
  sr: 4326,
@@ -142994,6 +142995,7 @@ var ArcGisListener = {
142994
142995
  var data = JSON.parse(body);
142995
142996
 
142996
142997
  if (data.results.length) {
142998
+ data = identifyColumnsArcgisrest(data, excludedColumns);
142997
142999
  cb(null, {
142998
143000
  dataset: visibleLayer.uid,
142999
143001
  layerName: visibleLayer.displayName,
@@ -162807,6 +162809,7 @@ var bundle$e = {
162807
162809
  if (!booleanDisjoint(identifyFeature, geoJsonFeature)) outFeatures.push(geoJsonFeature);
162808
162810
  });
162809
162811
  outFeatures = identifyColumnsArcgisvector(outFeatures, excludedColumns); //Column Filtering
162812
+ //Fix bug below only acting on layer 0
162810
162813
 
162811
162814
  if (layers[0].identifyFields) {
162812
162815
  outFeatures.forEach(function (feature) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corpsmap/corpsmap",
3
- "version": "3.2.22",
3
+ "version": "3.2.23",
4
4
  "description": "CorpsMap as React Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  import async from "async";
2
2
  import EsriJSON from "ol/format/EsriJSON";
3
- import { formatArcgisrest } from "../../../openlayers-utils/format-utilities";
3
+ import { formatArcgisrest, identifyColumnsArcgisrest } from "../../../openlayers-utils/format-utilities";
4
4
  const esrijsonFormat = new EsriJSON();
5
5
 
6
6
  function formatUrl(options) {
@@ -52,6 +52,7 @@ export default {
52
52
  const queries = [];
53
53
  const featureType = "Polygon";
54
54
  const identifyFeature = store.doSetIdentifyFeature();
55
+ let excludedColumns = store.selectIdentifyColumnsExclude();
55
56
 
56
57
  //https://developers.arcgis.com/rest/services-reference/enterprise/identify-map-service-.htm
57
58
  const params = {
@@ -69,7 +70,7 @@ export default {
69
70
  })
70
71
  ),
71
72
  };
72
-
73
+
73
74
  visibleLayers.forEach((visibleLayer) => {
74
75
  if (
75
76
  visibleLayer.identifyType &&
@@ -91,9 +92,11 @@ export default {
91
92
  });
92
93
  } else {
93
94
  try {
94
- const data = JSON.parse(body);
95
+ let data = JSON.parse(body);
95
96
 
96
97
  if (data.results.length) {
98
+ data = identifyColumnsArcgisrest(data, excludedColumns)
99
+
97
100
  cb(null, {
98
101
  dataset: visibleLayer.uid,
99
102
  layerName: visibleLayer.displayName,
@@ -129,6 +132,7 @@ export default {
129
132
  }
130
133
  } catch (err) {
131
134
  console.log(err);
135
+
132
136
  cb(null, {
133
137
  dataset: visibleLayer.uid,
134
138
  layerName: visibleLayer.displayName,
@@ -46,7 +46,7 @@ export default {
46
46
  ({ store, anonGet }) => {
47
47
  const coords = store.selectIdentifyCoordinates();
48
48
  const visibleLayers = store.selectVisibleLayers();
49
- let excludedColumns = store.selectIdentifyColumnsExclude()
49
+ let excludedColumns = store.selectIdentifyColumnsExclude();
50
50
  let featureType = "Point";
51
51
 
52
52
  if (!visibleLayers.length) return callback(null, []);
@@ -95,6 +95,7 @@ export default {
95
95
  let data = JSON.parse(body);
96
96
  data = identifyColumnsArcgisrest(data, excludedColumns)
97
97
  //Column Filtering
98
+
98
99
  if (visibleLayer.identifyFields) {
99
100
  data.results.forEach((result) => {
100
101
  if(result.attributes){
@@ -80,6 +80,7 @@ export default {
80
80
  });
81
81
  outFeatures = identifyColumnsArcgisvector(outFeatures, excludedColumns)
82
82
  //Column Filtering
83
+ //Fix bug below only acting on layer 0
83
84
  if (layers[0].identifyFields) {
84
85
  outFeatures.forEach((feature) => {
85
86
  if(feature.properties){
@@ -46,7 +46,7 @@ const identifyColumnsArcgisrest = function (data, excludedColumns) {
46
46
  delete result.attributes[column];
47
47
  });
48
48
  }
49
- return result.attributes
49
+ return result.attributes;
50
50
  });
51
51
  return data;
52
52
  };