@corpsmap/corpsmap 3.2.28 → 3.2.30
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 +67 -5727
- package/lib/prod.js +67 -5727
- package/package.json +1 -1
- package/src/application-bundles/map-layers-bundle.js +1 -0
- package/src/core-plugins/change-log/bundle.js +4 -4
- package/src/core-plugins/change-log/change-log-modal.js +3 -3
- package/src/core-plugins/legend/bundle.js +15 -5
package/package.json
CHANGED
|
@@ -44,6 +44,7 @@ const createNode = (options, map) => {
|
|
|
44
44
|
identifyRenameColums: options.identifyRenameColums,
|
|
45
45
|
identifyFormatColumns: options.identifyFormatColumns,
|
|
46
46
|
legend: options.legend,
|
|
47
|
+
legendOverride: !!options.legendOverride,
|
|
47
48
|
passFilter: true,
|
|
48
49
|
zoomTo: !!options.zoomTo,
|
|
49
50
|
minzoom: options.minzoom,
|
|
@@ -17,8 +17,8 @@ const testData = [
|
|
|
17
17
|
"district_code": "MVD",
|
|
18
18
|
"change_type": "Data Change",
|
|
19
19
|
"description": "Update locations for project at Pyote AAF Ground Gunnery Range (K06TX0146)\r\n\r\nOLD COORDINATES:\r\nBombing Range (01) 31.5575 -102.879444\r\nGround Gunnery Range (02) 31.585556 -102.898056\r\nSkeet Range (03) 31.553056 -102.875278\r\n\r\nNEW COORDINATES:\r\nBOMBING RANGE (01) 31.501163 -103.137657\r\nGROUND GUNNERY RANGE (02) 31.586237 -103.101082\r\nSKEET RANGE (03) 31.553096 -103.124618",
|
|
20
|
-
"create_date": "2023-
|
|
21
|
-
"change_date": "2023-
|
|
20
|
+
"create_date": "2023-07-23T15:41:24Z",
|
|
21
|
+
"change_date": "2023-07-23T15:41:24Z"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"id": 4715,
|
|
@@ -26,8 +26,8 @@ const testData = [
|
|
|
26
26
|
"district_code": "MVQ",
|
|
27
27
|
"change_type": "Data Change",
|
|
28
28
|
"description": "Update locations for project at Pyote AAF Ground Gunnery Range (K06TX0146)\r\n\r\nOLD COORDINATES:\r\nBombing Range (01) 31.5575 -102.879444\r\nGround Gunnery Range (02) 31.585556 -102.898056\r\nSkeet Range (03) 31.553056 -102.875278\r\n\r\nNEW COORDINATES:\r\nBOMBING RANGE (01) 31.501163 -103.137657\r\nGROUND GUNNERY RANGE (02) 31.586237 -103.101082\r\nSKEET RANGE (03) 31.553096 -103.124618",
|
|
29
|
-
"create_date": "2023-
|
|
30
|
-
"change_date": "2023-
|
|
29
|
+
"create_date": "2023-07-13T15:41:24Z",
|
|
30
|
+
"change_date": "2023-07-13T15:41:24Z"
|
|
31
31
|
},
|
|
32
32
|
];
|
|
33
33
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { connect } from "redux-bundler-react";
|
|
3
|
-
import moment from 'moment';
|
|
4
3
|
|
|
5
4
|
class ChangeLogModal extends React.Component {
|
|
6
5
|
constructor(props) {
|
|
@@ -16,8 +15,9 @@ class ChangeLogModal extends React.Component {
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
formatDate(oldDate){
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
let newDate = new Date(oldDate);
|
|
19
|
+
newDate = newDate.toLocaleString('default', { month: 'long', day: 'numeric', year: 'numeric'});
|
|
20
|
+
return newDate
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
render() {
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
let legendCanvases = store.selectLegendCanvases();
|
|
39
39
|
|
|
40
40
|
layers.forEach((lyr) => {
|
|
41
|
-
const { url, type, layerList, uid, displayName, layerDescription, attributions } = lyr;
|
|
41
|
+
const { url, type, layerList, uid, displayName, layerDescription, attributions, legendOverride } = lyr;
|
|
42
42
|
legendCanvases[uid] = {
|
|
43
43
|
displayName: displayName,
|
|
44
44
|
layerDescription: layerDescription,
|
|
@@ -57,8 +57,13 @@ export default {
|
|
|
57
57
|
case "ArcGISImage":
|
|
58
58
|
src = `${src}/legend?bandIds=&renderingRule=&f=pjson`;
|
|
59
59
|
break;
|
|
60
|
-
case "EsriFeatureService":
|
|
61
|
-
|
|
60
|
+
case "EsriFeatureService":
|
|
61
|
+
if (legendOverride === true) {
|
|
62
|
+
src = `${src}/legend?f=pjson`;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
src = `${src}/${layerList}?f=pjson`;
|
|
66
|
+
}
|
|
62
67
|
break;
|
|
63
68
|
default:
|
|
64
69
|
break;
|
|
@@ -79,7 +84,11 @@ export default {
|
|
|
79
84
|
try {
|
|
80
85
|
const data = JSON.parse(body);
|
|
81
86
|
if (type === "EsriFeatureService") {
|
|
82
|
-
|
|
87
|
+
if (legendOverride === true) {
|
|
88
|
+
store.doGenerateArcImages(data, lyr);
|
|
89
|
+
} else {
|
|
90
|
+
store.doGenerateEsriImages(data, lyr);
|
|
91
|
+
}
|
|
83
92
|
} else {
|
|
84
93
|
store.doGenerateArcImages(data, lyr);
|
|
85
94
|
}
|
|
@@ -194,7 +203,7 @@ export default {
|
|
|
194
203
|
heights: [],
|
|
195
204
|
};
|
|
196
205
|
legendLayers[uid] = [];
|
|
197
|
-
|
|
206
|
+
//TODO Logic below is needs to include other Esri styles.
|
|
198
207
|
switch (data.geometryType) {
|
|
199
208
|
case "esriGeometryPolygon":
|
|
200
209
|
if (
|
|
@@ -206,6 +215,7 @@ export default {
|
|
|
206
215
|
const outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
207
216
|
const fillColor = drawingInfo.renderer.symbol.color;
|
|
208
217
|
|
|
218
|
+
|
|
209
219
|
let canvas = document.createElement("canvas");
|
|
210
220
|
let ctx = canvas.getContext("2d");
|
|
211
221
|
|