@corpsmap/corpsmap 4.1.33 → 4.1.34
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/dist/corpsmap.es.js +1050 -1043
- package/dist/corpsmap.umd.js +17 -17
- package/package.json +1 -1
- package/src/core-plugins/identify-map-server/bundle.js +23 -10
package/package.json
CHANGED
|
@@ -22,6 +22,18 @@ function buildMapServerUrl(lyr, typeName, extent) {
|
|
|
22
22
|
].join("");
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
// Column options for one request: the identifyLayers entry's own setting wins,
|
|
26
|
+
// otherwise fall back to the parent layer's (e.g. a Top 10 site).
|
|
27
|
+
function getColumnOptions(lyr, entry = {}) {
|
|
28
|
+
return {
|
|
29
|
+
identifyFields: entry.identifyFields ?? lyr.identifyFields,
|
|
30
|
+
identifyRenameColumns:
|
|
31
|
+
entry.identifyRenameColumns ?? lyr.identifyRenameColumns,
|
|
32
|
+
identifyFormatColumns:
|
|
33
|
+
entry.identifyFormatColumns ?? lyr.identifyFormatColumns,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
/**
|
|
26
38
|
* Work out which WFS requests to send for a layer.
|
|
27
39
|
*
|
|
@@ -45,6 +57,7 @@ function getIdentifyTargets(lyr) {
|
|
|
45
57
|
resultKey: lyr.uid,
|
|
46
58
|
layerName: lyr.displayName,
|
|
47
59
|
label: lyr.id,
|
|
60
|
+
...getColumnOptions(lyr),
|
|
48
61
|
},
|
|
49
62
|
];
|
|
50
63
|
}
|
|
@@ -65,6 +78,7 @@ function getIdentifyTargets(lyr) {
|
|
|
65
78
|
resultKey: `${lyr.uid}:${name}`,
|
|
66
79
|
layerName: `${lyr.displayName}:${name}`,
|
|
67
80
|
label: `${lyr.id}/${entry.layerList}`,
|
|
81
|
+
...getColumnOptions(lyr, entry),
|
|
68
82
|
};
|
|
69
83
|
});
|
|
70
84
|
}
|
|
@@ -148,28 +162,27 @@ export default {
|
|
|
148
162
|
excludedColumns
|
|
149
163
|
);
|
|
150
164
|
|
|
151
|
-
// Column options
|
|
152
|
-
//
|
|
153
|
-
|
|
165
|
+
// Column options are per target: the identifyLayers entry, else the
|
|
166
|
+
// parent layer. Order matters: include (old names), rename, then
|
|
167
|
+
// format (which uses the new names).
|
|
168
|
+
if (target.identifyFields) {
|
|
154
169
|
outFeatures = identifyIncludeColumnsArcgisvector(
|
|
155
170
|
outFeatures,
|
|
156
|
-
|
|
171
|
+
target.identifyFields
|
|
157
172
|
);
|
|
158
173
|
}
|
|
159
174
|
|
|
160
|
-
|
|
161
|
-
lyr.identifyRenameColumns;
|
|
162
|
-
if (identifyRenameColumns) {
|
|
175
|
+
if (target.identifyRenameColumns) {
|
|
163
176
|
outFeatures = identifyRenameColumnsArcgisvector(
|
|
164
177
|
outFeatures,
|
|
165
|
-
identifyRenameColumns
|
|
178
|
+
target.identifyRenameColumns
|
|
166
179
|
);
|
|
167
180
|
}
|
|
168
181
|
|
|
169
|
-
if (
|
|
182
|
+
if (target.identifyFormatColumns) {
|
|
170
183
|
outFeatures = identifyFormatColumnsArcgisvector(
|
|
171
184
|
outFeatures,
|
|
172
|
-
|
|
185
|
+
target.identifyFormatColumns
|
|
173
186
|
);
|
|
174
187
|
}
|
|
175
188
|
|