@corpsmap/corpsmap 3.2.41 → 3.2.42
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/css/corpsmap.css +109 -109
- package/lib/dev.js +306 -96
- package/lib/prod.js +306 -96
- package/package.json +1 -1
- package/src/core-plugins/legend/bundle.js +1021 -1033
- package/src/core-plugins/resources/bundle.js +86 -0
- package/src/core-plugins/resources/index.js +15 -0
- package/src/core-plugins/resources/resources-button.js +44 -0
- package/src/core-plugins/resources/resources-modal.js +81 -0
- package/src/index.js +109 -107
package/lib/prod.js
CHANGED
|
@@ -9,7 +9,7 @@ var React$1__default = _interopDefault(React$1);
|
|
|
9
9
|
var crypto = _interopDefault(require('crypto'));
|
|
10
10
|
var http = _interopDefault(require('http'));
|
|
11
11
|
var https = _interopDefault(require('https'));
|
|
12
|
-
var url$
|
|
12
|
+
var url$3 = _interopDefault(require('url'));
|
|
13
13
|
var buffer$3 = _interopDefault(require('buffer'));
|
|
14
14
|
var string_decoder = _interopDefault(require('string_decoder'));
|
|
15
15
|
var stream = _interopDefault(require('stream'));
|
|
@@ -106569,7 +106569,7 @@ var config = {
|
|
|
106569
106569
|
};
|
|
106570
106570
|
|
|
106571
106571
|
var name = "@corpsmap/corpsmap";
|
|
106572
|
-
var version$1 = "3.2.
|
|
106572
|
+
var version$1 = "3.2.42";
|
|
106573
106573
|
var description = "CorpsMap as React Components";
|
|
106574
106574
|
var main = "index.js";
|
|
106575
106575
|
var scripts = {
|
|
@@ -117889,7 +117889,7 @@ var binaryajax = binaryAjax;
|
|
|
117889
117889
|
function binaryAjax(url) {
|
|
117890
117890
|
return new lib$2(function(resolve, reject) {
|
|
117891
117891
|
var type = url.slice(-3);
|
|
117892
|
-
var parsed = url$
|
|
117892
|
+
var parsed = url$3.parse(url);
|
|
117893
117893
|
var method = http;
|
|
117894
117894
|
if (parsed.protocol === 'https:') {
|
|
117895
117895
|
method = https;
|
|
@@ -136776,7 +136776,7 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
|
|
|
136776
136776
|
var ChangeLogModal$1 = connect("selectTheme", "selectChangeLogItems", "doModalClose", "doSubmitNotification", "doGetChangeLogData", "doSearchChangeLogData", ChangeLogModal);
|
|
136777
136777
|
|
|
136778
136778
|
var url$1 = "".concat(process.env.REACT_APP_FUDS_CHANGE_LOG_URL);
|
|
136779
|
-
var testData = [{
|
|
136779
|
+
var testData$1 = [{
|
|
136780
136780
|
"id": 4713,
|
|
136781
136781
|
"environment": "Public and Internal GIS",
|
|
136782
136782
|
"district_code": "MVN",
|
|
@@ -136805,7 +136805,7 @@ var bundle$3 = {
|
|
|
136805
136805
|
name: 'changeLog',
|
|
136806
136806
|
getReducer: function getReducer() {
|
|
136807
136807
|
var initialData = {
|
|
136808
|
-
items: testData,
|
|
136808
|
+
items: testData$1,
|
|
136809
136809
|
renderModal: false
|
|
136810
136810
|
};
|
|
136811
136811
|
return function () {
|
|
@@ -136871,7 +136871,7 @@ var bundle$3 = {
|
|
|
136871
136871
|
dispatch({
|
|
136872
136872
|
type: "CHANGE_LOG_LOAD_TEST_DATA",
|
|
136873
136873
|
payload: {
|
|
136874
|
-
items: testData,
|
|
136874
|
+
items: testData$1,
|
|
136875
136875
|
renderModal: true
|
|
136876
136876
|
}
|
|
136877
136877
|
});
|
|
@@ -136978,6 +136978,229 @@ var plugin$4 = {
|
|
|
136978
136978
|
}]
|
|
136979
136979
|
};
|
|
136980
136980
|
|
|
136981
|
+
var ResourcesModal = /*#__PURE__*/function (_React$Component) {
|
|
136982
|
+
function ResourcesModal(props) {
|
|
136983
|
+
var _this;
|
|
136984
|
+
_classCallCheck(this, ResourcesModal);
|
|
136985
|
+
_this = _callSuper(this, ResourcesModal, [props]);
|
|
136986
|
+
_this.state = {};
|
|
136987
|
+
_this.close = _this.close.bind(_this);
|
|
136988
|
+
return _this;
|
|
136989
|
+
}
|
|
136990
|
+
_inherits(ResourcesModal, _React$Component);
|
|
136991
|
+
return _createClass(ResourcesModal, [{
|
|
136992
|
+
key: "close",
|
|
136993
|
+
value: function close() {
|
|
136994
|
+
var doModalClose = this.props.doModalClose;
|
|
136995
|
+
doModalClose();
|
|
136996
|
+
}
|
|
136997
|
+
}, {
|
|
136998
|
+
key: "render",
|
|
136999
|
+
value: function render() {
|
|
137000
|
+
var _this$props = this.props,
|
|
137001
|
+
theme = _this$props.theme,
|
|
137002
|
+
doGetResourceData = _this$props.doGetResourceData,
|
|
137003
|
+
resourceItems = _this$props.resourceItems;
|
|
137004
|
+
var arrayDataItems = resourceItems.map(function (data) {
|
|
137005
|
+
return /*#__PURE__*/React$1__default.createElement("li", {
|
|
137006
|
+
style: Object.keys(data).length > 0 ? {
|
|
137007
|
+
listStyleType: "disc"
|
|
137008
|
+
} : {
|
|
137009
|
+
listStyleType: "none"
|
|
137010
|
+
}
|
|
137011
|
+
}, data.resource ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
137012
|
+
style: {
|
|
137013
|
+
listStyleType: "none"
|
|
137014
|
+
}
|
|
137015
|
+
}, /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("a", {
|
|
137016
|
+
href: data.url,
|
|
137017
|
+
target: "_blank",
|
|
137018
|
+
rel: "noreferrer nofollow noopener"
|
|
137019
|
+
}, data.resource))) : null, /*#__PURE__*/React$1__default.createElement("br", null));
|
|
137020
|
+
});
|
|
137021
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137022
|
+
className: "cm-modal-header " + theme
|
|
137023
|
+
}, "Resources"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137024
|
+
className: "cm-modal-body",
|
|
137025
|
+
style: {
|
|
137026
|
+
height: 290,
|
|
137027
|
+
top: 0,
|
|
137028
|
+
bottom: 0,
|
|
137029
|
+
left: 0,
|
|
137030
|
+
right: 0
|
|
137031
|
+
}
|
|
137032
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137033
|
+
className: "cm-form-group"
|
|
137034
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137035
|
+
style: {
|
|
137036
|
+
overflow: "auto scroll",
|
|
137037
|
+
width: "875px",
|
|
137038
|
+
height: "300px",
|
|
137039
|
+
whiteSpace: "pre-wrap"
|
|
137040
|
+
}
|
|
137041
|
+
}, /*#__PURE__*/React$1__default.createElement("ul", null, arrayDataItems)))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137042
|
+
className: "cm-modal-footer"
|
|
137043
|
+
}, /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("br", null), /*#__PURE__*/React$1__default.createElement("button", {
|
|
137044
|
+
style: {
|
|
137045
|
+
textAlign: "left"
|
|
137046
|
+
},
|
|
137047
|
+
type: "Close",
|
|
137048
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
137049
|
+
onClick: this.close
|
|
137050
|
+
}, "Close")));
|
|
137051
|
+
}
|
|
137052
|
+
}]);
|
|
137053
|
+
}(React$1__default.Component);
|
|
137054
|
+
var ResourcesModal$1 = connect("selectTheme", "selectResourceItems", "doModalClose", "doGetResourceData", ResourcesModal);
|
|
137055
|
+
|
|
137056
|
+
var url$2 = "".concat(process.env.REACT_APP_FUDS_RESOURCES_URL);
|
|
137057
|
+
var defaultHtml = [{
|
|
137058
|
+
"resource": "FUDSMIS Portal",
|
|
137059
|
+
"url": "https://fudsportal.usace.army.mil/"
|
|
137060
|
+
}, {
|
|
137061
|
+
"resource": "IPaC Information for Planning and Consultation",
|
|
137062
|
+
"url": "https://ipac.ecosphere.fws.gov/"
|
|
137063
|
+
}];
|
|
137064
|
+
var bundle$4 = {
|
|
137065
|
+
name: 'resources',
|
|
137066
|
+
getReducer: function getReducer() {
|
|
137067
|
+
var initialData = {
|
|
137068
|
+
items: defaultHtml,
|
|
137069
|
+
renderModal: false
|
|
137070
|
+
};
|
|
137071
|
+
return function () {
|
|
137072
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
137073
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
137074
|
+
type = _ref.type,
|
|
137075
|
+
payload = _ref.payload;
|
|
137076
|
+
switch (type) {
|
|
137077
|
+
case "RESOURCES_LOAD_TEST_DATA":
|
|
137078
|
+
case "RESOURCES_LOAD_PRODUCTION_DATA":
|
|
137079
|
+
case "RESOURCES_MODAL_WINDOW_OPENED":
|
|
137080
|
+
return Object.assign({}, state, payload);
|
|
137081
|
+
default:
|
|
137082
|
+
return state;
|
|
137083
|
+
}
|
|
137084
|
+
};
|
|
137085
|
+
},
|
|
137086
|
+
doGetResourceData: function doGetResourceData() {
|
|
137087
|
+
return function (_ref2) {
|
|
137088
|
+
var dispatch = _ref2.dispatch,
|
|
137089
|
+
store = _ref2.store,
|
|
137090
|
+
anonGet = _ref2.anonGet;
|
|
137091
|
+
anonGet(url$2, function (err, response, body) {
|
|
137092
|
+
if (err || response.statusCode !== 200) {
|
|
137093
|
+
// On Error Load Test Data
|
|
137094
|
+
dispatch({
|
|
137095
|
+
type: "RESOURCES_LOAD_TEST_DATA",
|
|
137096
|
+
payload: {
|
|
137097
|
+
items: testData,
|
|
137098
|
+
renderModal: true
|
|
137099
|
+
}
|
|
137100
|
+
});
|
|
137101
|
+
} else {
|
|
137102
|
+
try {
|
|
137103
|
+
console.log("Production Resource Data");
|
|
137104
|
+
console.log(body);
|
|
137105
|
+
var data = JSON.parse(body);
|
|
137106
|
+
console.log('data');
|
|
137107
|
+
console.log(data);
|
|
137108
|
+
var items = data.items;
|
|
137109
|
+
console.log("ITEMS");
|
|
137110
|
+
console.log(items);
|
|
137111
|
+
dispatch({
|
|
137112
|
+
type: "RESOURCES_LOAD_PRODUCTION_DATA",
|
|
137113
|
+
payload: {
|
|
137114
|
+
items: items,
|
|
137115
|
+
renderModal: true
|
|
137116
|
+
}
|
|
137117
|
+
});
|
|
137118
|
+
} catch (err) {
|
|
137119
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
137120
|
+
}
|
|
137121
|
+
}
|
|
137122
|
+
});
|
|
137123
|
+
};
|
|
137124
|
+
},
|
|
137125
|
+
doOpenModalResources: function doOpenModalResources() {
|
|
137126
|
+
return function (_ref3) {
|
|
137127
|
+
var dispatch = _ref3.dispatch,
|
|
137128
|
+
store = _ref3.store;
|
|
137129
|
+
store.doModalOpen({
|
|
137130
|
+
children: [ResourcesModal$1],
|
|
137131
|
+
options: {},
|
|
137132
|
+
openedBy: 'ResourcesButton'
|
|
137133
|
+
});
|
|
137134
|
+
dispatch({
|
|
137135
|
+
type: "RESOURCES_MODAL_WINDOW_OPENED",
|
|
137136
|
+
payload: {
|
|
137137
|
+
renderModal: false
|
|
137138
|
+
}
|
|
137139
|
+
});
|
|
137140
|
+
};
|
|
137141
|
+
},
|
|
137142
|
+
selectResourceItems: function selectResourceItems(state) {
|
|
137143
|
+
return state.resources.items;
|
|
137144
|
+
},
|
|
137145
|
+
reactRenderResourceModal: function reactRenderResourceModal(state) {
|
|
137146
|
+
if (state.resources.renderModal) return {
|
|
137147
|
+
actionCreator: "doOpenModalResources"
|
|
137148
|
+
};
|
|
137149
|
+
}
|
|
137150
|
+
};
|
|
137151
|
+
|
|
137152
|
+
var ResourcesButton = /*#__PURE__*/function (_React$Component) {
|
|
137153
|
+
function ResourcesButton(props) {
|
|
137154
|
+
var _this;
|
|
137155
|
+
_classCallCheck(this, ResourcesButton);
|
|
137156
|
+
_this = _callSuper(this, ResourcesButton, [props]);
|
|
137157
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
137158
|
+
_this.openModalResources = _this.openModalResources.bind(_this);
|
|
137159
|
+
return _this;
|
|
137160
|
+
}
|
|
137161
|
+
_inherits(ResourcesButton, _React$Component);
|
|
137162
|
+
return _createClass(ResourcesButton, [{
|
|
137163
|
+
key: "openModalResources",
|
|
137164
|
+
value: function openModalResources() {
|
|
137165
|
+
var doModalOpen = this.props.doModalOpen;
|
|
137166
|
+
doModalOpen({
|
|
137167
|
+
children: [ResourcesModal$1],
|
|
137168
|
+
options: {},
|
|
137169
|
+
openedBy: 'ResourcesButton'
|
|
137170
|
+
});
|
|
137171
|
+
}
|
|
137172
|
+
}, {
|
|
137173
|
+
key: "handleClick",
|
|
137174
|
+
value: function handleClick() {
|
|
137175
|
+
var doGetResourceData = this.props.doGetResourceData;
|
|
137176
|
+
this.openModalResources();
|
|
137177
|
+
doGetResourceData();
|
|
137178
|
+
}
|
|
137179
|
+
}, {
|
|
137180
|
+
key: "render",
|
|
137181
|
+
value: function render() {
|
|
137182
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
137183
|
+
iconClass: "mdi mdi-library",
|
|
137184
|
+
label: "Resources",
|
|
137185
|
+
title: "Resources",
|
|
137186
|
+
onClick: this.handleClick
|
|
137187
|
+
});
|
|
137188
|
+
}
|
|
137189
|
+
}]);
|
|
137190
|
+
}(React$1__default.Component);
|
|
137191
|
+
var resourcesButton = connect("doModalOpen", "doGetResourceData", ResourcesButton);
|
|
137192
|
+
|
|
137193
|
+
var plugin$5 = {
|
|
137194
|
+
pluginName: 'resources',
|
|
137195
|
+
enabled: true,
|
|
137196
|
+
bundle: bundle$4,
|
|
137197
|
+
components: [{
|
|
137198
|
+
component: resourcesButton,
|
|
137199
|
+
region: 'right-sidebar-top',
|
|
137200
|
+
sortOrder: 130
|
|
137201
|
+
}]
|
|
137202
|
+
};
|
|
137203
|
+
|
|
136981
137204
|
var CoordinateLatLonInput = function CoordinateLatLonInput(props) {
|
|
136982
137205
|
var label = props.label,
|
|
136983
137206
|
placeholder = props.placeholder,
|
|
@@ -137425,7 +137648,7 @@ function throttle(func, wait, options) {
|
|
|
137425
137648
|
|
|
137426
137649
|
var throttle_1 = throttle;
|
|
137427
137650
|
|
|
137428
|
-
var bundle$
|
|
137651
|
+
var bundle$5 = {
|
|
137429
137652
|
name: "coordinateDisplay",
|
|
137430
137653
|
getReducer: function getReducer() {
|
|
137431
137654
|
var initialData = {
|
|
@@ -137705,10 +137928,10 @@ var bundle$4 = {
|
|
|
137705
137928
|
}
|
|
137706
137929
|
};
|
|
137707
137930
|
|
|
137708
|
-
var plugin$
|
|
137931
|
+
var plugin$6 = {
|
|
137709
137932
|
pluginName: 'PositionText',
|
|
137710
137933
|
enabled: true,
|
|
137711
|
-
bundle: bundle$
|
|
137934
|
+
bundle: bundle$5,
|
|
137712
137935
|
components: [{
|
|
137713
137936
|
component: CoordinateDisplay$1,
|
|
137714
137937
|
region: 'lower-right-toolbar',
|
|
@@ -138714,7 +138937,7 @@ var drawSaveBundle = {
|
|
|
138714
138937
|
persistActions: ['DRAW_SAVE_COMPLETE']
|
|
138715
138938
|
};
|
|
138716
138939
|
|
|
138717
|
-
var plugin$
|
|
138940
|
+
var plugin$7 = {
|
|
138718
138941
|
pluginName: 'Draw Tools',
|
|
138719
138942
|
enabled: true,
|
|
138720
138943
|
bundle: [createDrawBundle({
|
|
@@ -138891,7 +139114,7 @@ var zoomScales = {
|
|
|
138891
139114
|
poi: 19,
|
|
138892
139115
|
"poi.landmark": 19
|
|
138893
139116
|
};
|
|
138894
|
-
var bundle$
|
|
139117
|
+
var bundle$6 = {
|
|
138895
139118
|
name: "geocoder",
|
|
138896
139119
|
getReducer: function getReducer() {
|
|
138897
139120
|
var initialData = {
|
|
@@ -139048,10 +139271,10 @@ var bundle$5 = {
|
|
|
139048
139271
|
}
|
|
139049
139272
|
};
|
|
139050
139273
|
|
|
139051
|
-
var plugin$
|
|
139274
|
+
var plugin$8 = {
|
|
139052
139275
|
pluginName: 'Geocoder',
|
|
139053
139276
|
enabled: true,
|
|
139054
|
-
bundle: bundle$
|
|
139277
|
+
bundle: bundle$6,
|
|
139055
139278
|
components: [{
|
|
139056
139279
|
component: SearchBar$1,
|
|
139057
139280
|
region: 'basic-toolbar',
|
|
@@ -141353,7 +141576,7 @@ function compareCoords(pair1, pair2) {
|
|
|
141353
141576
|
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
141354
141577
|
}
|
|
141355
141578
|
|
|
141356
|
-
var bundle$
|
|
141579
|
+
var bundle$7 = {
|
|
141357
141580
|
name: 'geojsonIdent',
|
|
141358
141581
|
getReducer: function getReducer() {
|
|
141359
141582
|
var initialData = {
|
|
@@ -141513,10 +141736,10 @@ var bundle$6 = {
|
|
|
141513
141736
|
}
|
|
141514
141737
|
};
|
|
141515
141738
|
|
|
141516
|
-
var plugin$
|
|
141739
|
+
var plugin$9 = {
|
|
141517
141740
|
pluginName: 'Identify GeoJSON',
|
|
141518
141741
|
enabled: true,
|
|
141519
|
-
bundle: bundle$
|
|
141742
|
+
bundle: bundle$7,
|
|
141520
141743
|
components: []
|
|
141521
141744
|
};
|
|
141522
141745
|
|
|
@@ -145287,7 +145510,7 @@ var bufferLayer = getLayer({
|
|
|
145287
145510
|
var identify = {
|
|
145288
145511
|
overlays: []
|
|
145289
145512
|
};
|
|
145290
|
-
var bundle$
|
|
145513
|
+
var bundle$8 = {
|
|
145291
145514
|
name: "identifyUi",
|
|
145292
145515
|
getReducer: function getReducer() {
|
|
145293
145516
|
var initialData = {
|
|
@@ -146159,10 +146382,10 @@ var VectorListener = {
|
|
|
146159
146382
|
}
|
|
146160
146383
|
};
|
|
146161
146384
|
|
|
146162
|
-
var plugin$
|
|
146385
|
+
var plugin$a = {
|
|
146163
146386
|
pluginName: "IdentifyTools",
|
|
146164
146387
|
enabled: true,
|
|
146165
|
-
bundle: [bundle$
|
|
146388
|
+
bundle: [bundle$8, ArcGisListener,
|
|
146166
146389
|
// GeoJsonListener,
|
|
146167
146390
|
// RasterListener,
|
|
146168
146391
|
VectorListener],
|
|
@@ -161729,7 +161952,7 @@ var LegendButton = /*#__PURE__*/function (_React$Component) {
|
|
|
161729
161952
|
|
|
161730
161953
|
//import { Style, Fill, Stroke } from "ol/style";
|
|
161731
161954
|
var req = null;
|
|
161732
|
-
var bundle$
|
|
161955
|
+
var bundle$9 = {
|
|
161733
161956
|
name: "legend",
|
|
161734
161957
|
getReducer: function getReducer() {
|
|
161735
161958
|
var initialData = {
|
|
@@ -161785,7 +162008,6 @@ var bundle$8 = {
|
|
|
161785
162008
|
heights: []
|
|
161786
162009
|
};
|
|
161787
162010
|
var src = url;
|
|
161788
|
-
// debugger
|
|
161789
162011
|
switch (type) {
|
|
161790
162012
|
case "ArcGIS":
|
|
161791
162013
|
src = "".concat(src, "/legend?f=pjson");
|
|
@@ -161794,7 +162016,6 @@ var bundle$8 = {
|
|
|
161794
162016
|
src = "".concat(src, "/legend?bandIds=&renderingRule=&f=pjson");
|
|
161795
162017
|
break;
|
|
161796
162018
|
case "EsriFeatureService":
|
|
161797
|
-
// debugger
|
|
161798
162019
|
if (legendOverride === true) {
|
|
161799
162020
|
src = "".concat(src, "/legend?f=pjson");
|
|
161800
162021
|
} else {
|
|
@@ -161803,9 +162024,7 @@ var bundle$8 = {
|
|
|
161803
162024
|
break;
|
|
161804
162025
|
}
|
|
161805
162026
|
req = xhr.get(src, function (err, response, body) {
|
|
161806
|
-
// debugger
|
|
161807
162027
|
if (err || response.statusCode !== 200) {
|
|
161808
|
-
// debugger
|
|
161809
162028
|
legendLayers[uid] = ["Legend not available!"];
|
|
161810
162029
|
dispatch({
|
|
161811
162030
|
type: "LEGEND_LAYERS_UPDATE_ERROR",
|
|
@@ -161818,13 +162037,11 @@ var bundle$8 = {
|
|
|
161818
162037
|
} else {
|
|
161819
162038
|
try {
|
|
161820
162039
|
var data = JSON.parse(body);
|
|
161821
|
-
// debugger
|
|
161822
162040
|
console.log(data);
|
|
161823
162041
|
if (type === "EsriFeatureService") {
|
|
161824
162042
|
if (legendOverride === true) {
|
|
161825
162043
|
store.doGenerateArcImages(data, lyr);
|
|
161826
162044
|
} else {
|
|
161827
|
-
// debugger
|
|
161828
162045
|
store.doGenerateEsriImages(data, lyr);
|
|
161829
162046
|
}
|
|
161830
162047
|
} else {
|
|
@@ -161947,11 +162164,9 @@ var bundle$8 = {
|
|
|
161947
162164
|
//TODO Logic below is needs to include other Esri styles.
|
|
161948
162165
|
console.log(drawingInfo.renderer);
|
|
161949
162166
|
console.log(drawingInfo.renderer.symbol);
|
|
161950
|
-
// debugger
|
|
161951
162167
|
switch (data.geometryType) {
|
|
161952
162168
|
case "esriGeometryPolygon":
|
|
161953
162169
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSSolid") {
|
|
161954
|
-
// debugger
|
|
161955
162170
|
var img = new Image();
|
|
161956
162171
|
var outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
161957
162172
|
var fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -161992,7 +162207,6 @@ var bundle$8 = {
|
|
|
161992
162207
|
}
|
|
161993
162208
|
});
|
|
161994
162209
|
} else if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
161995
|
-
// debugger
|
|
161996
162210
|
var _img = new Image();
|
|
161997
162211
|
var _outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
161998
162212
|
var _fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162188,7 +162402,6 @@ var bundle$8 = {
|
|
|
162188
162402
|
break;
|
|
162189
162403
|
case "esriGeometryPoint":
|
|
162190
162404
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162191
|
-
// debugger
|
|
162192
162405
|
var _img3 = new Image();
|
|
162193
162406
|
_img3.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162194
162407
|
_img3.addEventListener("load", function () {
|
|
@@ -162380,8 +162593,6 @@ var bundle$8 = {
|
|
|
162380
162593
|
img.src = canvas.toDataURL(); //set src using data URI from canvas
|
|
162381
162594
|
img.alt = "Style for ".concat(displayName);
|
|
162382
162595
|
img.crossOrigin = "anonymous";
|
|
162383
|
-
// debugger
|
|
162384
|
-
|
|
162385
162596
|
legendCanvases[uid].canvas.push(canvas);
|
|
162386
162597
|
dispatch({
|
|
162387
162598
|
type: "LEGEND_CANVAS_ADDED",
|
|
@@ -162412,9 +162623,7 @@ var bundle$8 = {
|
|
|
162412
162623
|
}
|
|
162413
162624
|
break;
|
|
162414
162625
|
case "esriGeometryMultipoint":
|
|
162415
|
-
// debugger
|
|
162416
162626
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162417
|
-
// debugger
|
|
162418
162627
|
var _img5 = new Image();
|
|
162419
162628
|
_img5.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162420
162629
|
_img5.addEventListener("load", function () {
|
|
@@ -162669,10 +162878,10 @@ var bundle$8 = {
|
|
|
162669
162878
|
}
|
|
162670
162879
|
};
|
|
162671
162880
|
|
|
162672
|
-
var plugin$
|
|
162881
|
+
var plugin$b = {
|
|
162673
162882
|
pluginName: "Legend",
|
|
162674
162883
|
enabled: true,
|
|
162675
|
-
bundle: bundle$
|
|
162884
|
+
bundle: bundle$9,
|
|
162676
162885
|
components: [{
|
|
162677
162886
|
component: LegendButton,
|
|
162678
162887
|
region: "left-sidebar-top",
|
|
@@ -163065,7 +163274,7 @@ var modifyArea = createInteraction({
|
|
|
163065
163274
|
});
|
|
163066
163275
|
|
|
163067
163276
|
// START BUNDLE
|
|
163068
|
-
var bundle$
|
|
163277
|
+
var bundle$a = {
|
|
163069
163278
|
name: "measure",
|
|
163070
163279
|
getReducer: function getReducer() {
|
|
163071
163280
|
var initialData = {
|
|
@@ -163292,10 +163501,10 @@ var bundle$9 = {
|
|
|
163292
163501
|
}
|
|
163293
163502
|
};
|
|
163294
163503
|
|
|
163295
|
-
var plugin$
|
|
163504
|
+
var plugin$c = {
|
|
163296
163505
|
pluginName: 'MeasureArea',
|
|
163297
163506
|
enabled: true,
|
|
163298
|
-
bundle: bundle$
|
|
163507
|
+
bundle: bundle$a,
|
|
163299
163508
|
components: [{
|
|
163300
163509
|
component: MeasureToolsButton$1,
|
|
163301
163510
|
region: 'basic-toolbar',
|
|
@@ -163303,7 +163512,7 @@ var plugin$b = {
|
|
|
163303
163512
|
}]
|
|
163304
163513
|
};
|
|
163305
163514
|
|
|
163306
|
-
var bundle$
|
|
163515
|
+
var bundle$b = {
|
|
163307
163516
|
name: 'permalink',
|
|
163308
163517
|
getReducer: function getReducer() {
|
|
163309
163518
|
var initialData = {
|
|
@@ -163454,10 +163663,10 @@ var PermalinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
163454
163663
|
}(React$1__default.Component);
|
|
163455
163664
|
var PermalinkButton$1 = connect('doConstructPermalinkParams', 'doModalOpen', PermalinkButton);
|
|
163456
163665
|
|
|
163457
|
-
var plugin$
|
|
163666
|
+
var plugin$d = {
|
|
163458
163667
|
pluginName: 'Permalink',
|
|
163459
163668
|
enabled: true,
|
|
163460
|
-
bundle: bundle$
|
|
163669
|
+
bundle: bundle$b,
|
|
163461
163670
|
components: [{
|
|
163462
163671
|
component: PermalinkButton$1,
|
|
163463
163672
|
region: 'right-sidebar-top',
|
|
@@ -163584,7 +163793,7 @@ function sum$2(array) {
|
|
|
163584
163793
|
|
|
163585
163794
|
var sum_1 = sum$2;
|
|
163586
163795
|
|
|
163587
|
-
var bundle$
|
|
163796
|
+
var bundle$c = {
|
|
163588
163797
|
name: "print",
|
|
163589
163798
|
getReducer: function getReducer() {
|
|
163590
163799
|
var initialData = {
|
|
@@ -163894,10 +164103,10 @@ var Button = function Button(_ref) {
|
|
|
163894
164103
|
};
|
|
163895
164104
|
var Button$1 = connect("doPrintMap", Button);
|
|
163896
164105
|
|
|
163897
|
-
var plugin$
|
|
164106
|
+
var plugin$e = {
|
|
163898
164107
|
pluginName: "Print Map",
|
|
163899
164108
|
enabled: true,
|
|
163900
|
-
bundle: bundle$
|
|
164109
|
+
bundle: bundle$c,
|
|
163901
164110
|
components: [{
|
|
163902
164111
|
component: Button$1,
|
|
163903
164112
|
region: "basic-toolbar",
|
|
@@ -164137,7 +164346,7 @@ var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
|
164137
164346
|
}(React$1__default.Component);
|
|
164138
164347
|
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
164139
164348
|
|
|
164140
|
-
var bundle$
|
|
164349
|
+
var bundle$d = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
164141
164350
|
name: "questionsTab",
|
|
164142
164351
|
getReducer: function getReducer() {
|
|
164143
164352
|
var initialData = {
|
|
@@ -164365,10 +164574,10 @@ var bundle$c = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
164365
164574
|
return state.questionsTab.errorList;
|
|
164366
164575
|
});
|
|
164367
164576
|
|
|
164368
|
-
var plugin$
|
|
164577
|
+
var plugin$f = {
|
|
164369
164578
|
pluginName: "questionsTab",
|
|
164370
164579
|
enabled: true,
|
|
164371
|
-
bundle: bundle$
|
|
164580
|
+
bundle: bundle$d,
|
|
164372
164581
|
components: [{
|
|
164373
164582
|
component: questionsTab$1,
|
|
164374
164583
|
region: "right-sidebar-top",
|
|
@@ -164376,7 +164585,7 @@ var plugin$e = {
|
|
|
164376
164585
|
}]
|
|
164377
164586
|
};
|
|
164378
164587
|
|
|
164379
|
-
var bundle$
|
|
164588
|
+
var bundle$e = {
|
|
164380
164589
|
name: "rasterIdent",
|
|
164381
164590
|
getReducer: function getReducer() {
|
|
164382
164591
|
var initialData = {
|
|
@@ -164462,10 +164671,10 @@ var bundle$d = {
|
|
|
164462
164671
|
}
|
|
164463
164672
|
};
|
|
164464
164673
|
|
|
164465
|
-
var plugin$
|
|
164674
|
+
var plugin$g = {
|
|
164466
164675
|
pluginName: 'Identify Raster',
|
|
164467
164676
|
enabled: true,
|
|
164468
|
-
bundle: bundle$
|
|
164677
|
+
bundle: bundle$e,
|
|
164469
164678
|
components: []
|
|
164470
164679
|
};
|
|
164471
164680
|
|
|
@@ -164504,7 +164713,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164504
164713
|
}(React$1__default.Component);
|
|
164505
164714
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
164506
164715
|
|
|
164507
|
-
var plugin$
|
|
164716
|
+
var plugin$h = {
|
|
164508
164717
|
pluginName: 'NorthButton',
|
|
164509
164718
|
enabled: true,
|
|
164510
164719
|
components: [{
|
|
@@ -164514,7 +164723,7 @@ var plugin$g = {
|
|
|
164514
164723
|
}]
|
|
164515
164724
|
};
|
|
164516
164725
|
|
|
164517
|
-
var bundle$
|
|
164726
|
+
var bundle$f = {
|
|
164518
164727
|
name: 'themeSwitcher',
|
|
164519
164728
|
getReducer: function getReducer() {
|
|
164520
164729
|
var initialData = {
|
|
@@ -164619,7 +164828,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164619
164828
|
}]);
|
|
164620
164829
|
}(React$1__default.Component);
|
|
164621
164830
|
|
|
164622
|
-
var plugin$
|
|
164831
|
+
var plugin$i = {
|
|
164623
164832
|
pluginName: 'Theme Switcher',
|
|
164624
164833
|
enabled: true,
|
|
164625
164834
|
components: [{
|
|
@@ -164627,7 +164836,7 @@ var plugin$h = {
|
|
|
164627
164836
|
region: 'left-sidebar-bottom',
|
|
164628
164837
|
sortOrder: 30
|
|
164629
164838
|
}],
|
|
164630
|
-
bundle: bundle$
|
|
164839
|
+
bundle: bundle$f
|
|
164631
164840
|
};
|
|
164632
164841
|
|
|
164633
164842
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -165604,7 +165813,7 @@ var treeViewDownload = {
|
|
|
165604
165813
|
}
|
|
165605
165814
|
};
|
|
165606
165815
|
|
|
165607
|
-
var plugin$
|
|
165816
|
+
var plugin$j = function plugin(controls) {
|
|
165608
165817
|
return {
|
|
165609
165818
|
pluginName: "LayerTree",
|
|
165610
165819
|
enabled: true,
|
|
@@ -165618,7 +165827,7 @@ var plugin$i = function plugin(controls) {
|
|
|
165618
165827
|
};
|
|
165619
165828
|
|
|
165620
165829
|
var geoJSON$3 = new GeoJSON();
|
|
165621
|
-
var bundle$
|
|
165830
|
+
var bundle$g = {
|
|
165622
165831
|
name: "vectorIdent",
|
|
165623
165832
|
getReducer: function getReducer() {
|
|
165624
165833
|
var initialData = {
|
|
@@ -165750,10 +165959,10 @@ var bundle$f = {
|
|
|
165750
165959
|
}
|
|
165751
165960
|
};
|
|
165752
165961
|
|
|
165753
|
-
var plugin$
|
|
165962
|
+
var plugin$k = {
|
|
165754
165963
|
pluginName: 'Identify Vector',
|
|
165755
165964
|
enabled: true,
|
|
165756
|
-
bundle: bundle$
|
|
165965
|
+
bundle: bundle$g,
|
|
165757
165966
|
components: []
|
|
165758
165967
|
};
|
|
165759
165968
|
|
|
@@ -165807,7 +166016,7 @@ function values$1(object) {
|
|
|
165807
166016
|
|
|
165808
166017
|
var values_1 = values$1;
|
|
165809
166018
|
|
|
165810
|
-
var bundle$
|
|
166019
|
+
var bundle$h = {
|
|
165811
166020
|
name: 'vectorSearch',
|
|
165812
166021
|
getReducer: function getReducer() {
|
|
165813
166022
|
var initialData = {
|
|
@@ -165921,10 +166130,10 @@ var bundle$g = {
|
|
|
165921
166130
|
}
|
|
165922
166131
|
};
|
|
165923
166132
|
|
|
165924
|
-
var plugin$
|
|
166133
|
+
var plugin$l = {
|
|
165925
166134
|
pluginName: 'Vector Search',
|
|
165926
166135
|
enabled: true,
|
|
165927
|
-
bundle: bundle$
|
|
166136
|
+
bundle: bundle$h,
|
|
165928
166137
|
components: []
|
|
165929
166138
|
};
|
|
165930
166139
|
|
|
@@ -165986,7 +166195,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
165986
166195
|
}(React$1__default.Component);
|
|
165987
166196
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
165988
166197
|
|
|
165989
|
-
var plugin$
|
|
166198
|
+
var plugin$m = {
|
|
165990
166199
|
pluginName: 'ZoomButtons',
|
|
165991
166200
|
enabled: true,
|
|
165992
166201
|
components: [{
|
|
@@ -166033,7 +166242,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166033
166242
|
}(React$1__default.Component);
|
|
166034
166243
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
166035
166244
|
|
|
166036
|
-
var bundle$
|
|
166245
|
+
var bundle$i = {
|
|
166037
166246
|
name: "zoomLevel",
|
|
166038
166247
|
getReducer: function getReducer() {
|
|
166039
166248
|
var initialData = {
|
|
@@ -166070,10 +166279,10 @@ var bundle$h = {
|
|
|
166070
166279
|
}
|
|
166071
166280
|
};
|
|
166072
166281
|
|
|
166073
|
-
var plugin$
|
|
166282
|
+
var plugin$n = {
|
|
166074
166283
|
pluginName: 'zoomIndicator',
|
|
166075
166284
|
enabled: true,
|
|
166076
|
-
bundle: bundle$
|
|
166285
|
+
bundle: bundle$i,
|
|
166077
166286
|
components: [{
|
|
166078
166287
|
component: zoomIndicator$1,
|
|
166079
166288
|
region: 'right-sidebar-top',
|
|
@@ -166139,7 +166348,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166139
166348
|
}(React$1__default.Component);
|
|
166140
166349
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
166141
166350
|
|
|
166142
|
-
var bundle$
|
|
166351
|
+
var bundle$j = {
|
|
166143
166352
|
name: "zoomHome",
|
|
166144
166353
|
getReducer: function getReducer() {
|
|
166145
166354
|
var initialData = {
|
|
@@ -166207,10 +166416,10 @@ var bundle$i = {
|
|
|
166207
166416
|
}
|
|
166208
166417
|
};
|
|
166209
166418
|
|
|
166210
|
-
var plugin$
|
|
166419
|
+
var plugin$o = {
|
|
166211
166420
|
pluginName: "ZoomToInitial",
|
|
166212
166421
|
enabled: true,
|
|
166213
|
-
bundle: bundle$
|
|
166422
|
+
bundle: bundle$j,
|
|
166214
166423
|
components: [{
|
|
166215
166424
|
component: ZoomHomeButton$1,
|
|
166216
166425
|
region: "left-sidebar-top",
|
|
@@ -166279,7 +166488,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
166279
166488
|
var zoombox = createInteraction({
|
|
166280
166489
|
interaction: 'dragbox'
|
|
166281
166490
|
});
|
|
166282
|
-
var bundle$
|
|
166491
|
+
var bundle$k = {
|
|
166283
166492
|
name: 'zoombox',
|
|
166284
166493
|
getReducer: function getReducer() {
|
|
166285
166494
|
var initialData = {
|
|
@@ -166372,10 +166581,10 @@ var bundle$j = {
|
|
|
166372
166581
|
}
|
|
166373
166582
|
};
|
|
166374
166583
|
|
|
166375
|
-
var plugin$
|
|
166584
|
+
var plugin$p = {
|
|
166376
166585
|
pluginName: 'ZoomtoExtent',
|
|
166377
166586
|
enabled: true,
|
|
166378
|
-
bundle: bundle$
|
|
166587
|
+
bundle: bundle$k,
|
|
166379
166588
|
components: [{
|
|
166380
166589
|
component: ZoomToBoxButton$1,
|
|
166381
166590
|
region: 'basic-toolbar',
|
|
@@ -166418,7 +166627,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166418
166627
|
}(React$1__default.Component);
|
|
166419
166628
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
166420
166629
|
|
|
166421
|
-
var bundle$
|
|
166630
|
+
var bundle$l = {
|
|
166422
166631
|
name: "mapLoading",
|
|
166423
166632
|
getReducer: function getReducer() {
|
|
166424
166633
|
var initialData = {
|
|
@@ -166451,10 +166660,10 @@ var bundle$k = {
|
|
|
166451
166660
|
}
|
|
166452
166661
|
};
|
|
166453
166662
|
|
|
166454
|
-
var plugin$
|
|
166663
|
+
var plugin$q = {
|
|
166455
166664
|
pluginName: "MapLoadingIndicator",
|
|
166456
166665
|
enabled: true,
|
|
166457
|
-
bundle: bundle$
|
|
166666
|
+
bundle: bundle$l,
|
|
166458
166667
|
components: [{
|
|
166459
166668
|
component: MapLoadingIndicator$1,
|
|
166460
166669
|
region: "lower-right-toolbar",
|
|
@@ -166484,26 +166693,27 @@ exports.arcgisIdent = plugin$1;
|
|
|
166484
166693
|
exports.basemapSwitcher = plugin$2;
|
|
166485
166694
|
exports.bookmarks = plugin$3;
|
|
166486
166695
|
exports.changeLog = plugin$4;
|
|
166487
|
-
exports.coordDisplay = plugin$
|
|
166488
|
-
exports.draw = plugin$
|
|
166696
|
+
exports.coordDisplay = plugin$6;
|
|
166697
|
+
exports.draw = plugin$7;
|
|
166489
166698
|
exports.esriIdent = plugin$1;
|
|
166490
|
-
exports.geocoder = plugin$
|
|
166491
|
-
exports.geojsonIdent = plugin$
|
|
166492
|
-
exports.identify = plugin$
|
|
166493
|
-
exports.legend = plugin$
|
|
166494
|
-
exports.mapLoadingIndicator = plugin$
|
|
166495
|
-
exports.measureTools = plugin$
|
|
166496
|
-
exports.permalink = plugin$
|
|
166497
|
-
exports.printMap = plugin$
|
|
166498
|
-
exports.questionsTab = plugin$
|
|
166499
|
-
exports.rasterIdent = plugin$
|
|
166500
|
-
exports.
|
|
166501
|
-
exports.
|
|
166502
|
-
exports.
|
|
166699
|
+
exports.geocoder = plugin$8;
|
|
166700
|
+
exports.geojsonIdent = plugin$9;
|
|
166701
|
+
exports.identify = plugin$a;
|
|
166702
|
+
exports.legend = plugin$b;
|
|
166703
|
+
exports.mapLoadingIndicator = plugin$q;
|
|
166704
|
+
exports.measureTools = plugin$c;
|
|
166705
|
+
exports.permalink = plugin$d;
|
|
166706
|
+
exports.printMap = plugin$e;
|
|
166707
|
+
exports.questionsTab = plugin$f;
|
|
166708
|
+
exports.rasterIdent = plugin$g;
|
|
166709
|
+
exports.resources = plugin$5;
|
|
166710
|
+
exports.rotateNorth = plugin$h;
|
|
166711
|
+
exports.themeSwitcher = plugin$i;
|
|
166712
|
+
exports.treeView = plugin$j;
|
|
166503
166713
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
166504
|
-
exports.vectorIdent = plugin$
|
|
166505
|
-
exports.vectorSearch = plugin$
|
|
166506
|
-
exports.zoomHome = plugin$
|
|
166507
|
-
exports.zoomInOut = plugin$
|
|
166508
|
-
exports.zoomLevel = plugin$
|
|
166509
|
-
exports.zoomToBox = plugin$
|
|
166714
|
+
exports.vectorIdent = plugin$k;
|
|
166715
|
+
exports.vectorSearch = plugin$l;
|
|
166716
|
+
exports.zoomHome = plugin$o;
|
|
166717
|
+
exports.zoomInOut = plugin$m;
|
|
166718
|
+
exports.zoomLevel = plugin$n;
|
|
166719
|
+
exports.zoomToBox = plugin$p;
|