@corpsmap/corpsmap 3.2.41 → 3.2.44
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 +310 -94
- package/lib/prod.js +310 -94
- package/package.json +1 -1
- package/src/core-plugins/change-log/change-log-modal.js +7 -5
- package/src/core-plugins/legend/bundle.js +1021 -1033
- package/src/core-plugins/resources/bundle.js +87 -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 +75 -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.44";
|
|
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;
|
|
@@ -136712,19 +136712,25 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
|
|
|
136712
136712
|
} : {
|
|
136713
136713
|
listStyleType: "none"
|
|
136714
136714
|
}
|
|
136715
|
-
}, data.change_date ? /*#__PURE__*/React$1__default.createElement("li",
|
|
136715
|
+
}, data.change_date ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136716
|
+
key: data.change_date
|
|
136717
|
+
}, /*#__PURE__*/React$1__default.createElement("b", null, _this2.formatDate(data.change_date))) : null, data.environment ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136718
|
+
key: data.environment,
|
|
136716
136719
|
style: {
|
|
136717
136720
|
listStyleType: "none"
|
|
136718
136721
|
}
|
|
136719
136722
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "Environment:"), " ", data.environment, " ") : null, data.change_type ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136723
|
+
key: data.change_date,
|
|
136720
136724
|
style: {
|
|
136721
136725
|
listStyleType: "none"
|
|
136722
136726
|
}
|
|
136723
136727
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "Change Type:"), " ", data.change_type) : null, data.district_code ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136728
|
+
key: data.district_code,
|
|
136724
136729
|
style: {
|
|
136725
136730
|
listStyleType: "none"
|
|
136726
136731
|
}
|
|
136727
136732
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "District:"), " ", data.district_code) : null, data.description ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136733
|
+
key: data.description,
|
|
136728
136734
|
style: {
|
|
136729
136735
|
listStyleType: "none"
|
|
136730
136736
|
}
|
|
@@ -136978,6 +136984,229 @@ var plugin$4 = {
|
|
|
136978
136984
|
}]
|
|
136979
136985
|
};
|
|
136980
136986
|
|
|
136987
|
+
var ResourcesModal = /*#__PURE__*/function (_React$Component) {
|
|
136988
|
+
function ResourcesModal(props) {
|
|
136989
|
+
var _this;
|
|
136990
|
+
_classCallCheck(this, ResourcesModal);
|
|
136991
|
+
_this = _callSuper(this, ResourcesModal, [props]);
|
|
136992
|
+
_this.state = {};
|
|
136993
|
+
_this.close = _this.close.bind(_this);
|
|
136994
|
+
return _this;
|
|
136995
|
+
}
|
|
136996
|
+
_inherits(ResourcesModal, _React$Component);
|
|
136997
|
+
return _createClass(ResourcesModal, [{
|
|
136998
|
+
key: "close",
|
|
136999
|
+
value: function close() {
|
|
137000
|
+
var doModalClose = this.props.doModalClose;
|
|
137001
|
+
doModalClose();
|
|
137002
|
+
}
|
|
137003
|
+
}, {
|
|
137004
|
+
key: "render",
|
|
137005
|
+
value: function render() {
|
|
137006
|
+
var _this$props = this.props,
|
|
137007
|
+
theme = _this$props.theme,
|
|
137008
|
+
doGetResourceData = _this$props.doGetResourceData,
|
|
137009
|
+
resourceItems = _this$props.resourceItems;
|
|
137010
|
+
var arrayDataItems = resourceItems.map(function (data) {
|
|
137011
|
+
return /*#__PURE__*/React$1__default.createElement("li", {
|
|
137012
|
+
style: Object.keys(data).length > 0 ? {
|
|
137013
|
+
listStyleType: "disc"
|
|
137014
|
+
} : {
|
|
137015
|
+
listStyleType: "none"
|
|
137016
|
+
}
|
|
137017
|
+
}, data.name ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
137018
|
+
style: {
|
|
137019
|
+
listStyleType: "none"
|
|
137020
|
+
}
|
|
137021
|
+
}, /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("a", {
|
|
137022
|
+
href: data.url,
|
|
137023
|
+
target: "_blank",
|
|
137024
|
+
rel: "noreferrer nofollow noopener"
|
|
137025
|
+
}, data.name))) : null, /*#__PURE__*/React$1__default.createElement("br", null));
|
|
137026
|
+
});
|
|
137027
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137028
|
+
className: "cm-modal-header " + theme
|
|
137029
|
+
}, "Resources"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137030
|
+
className: "cm-modal-body",
|
|
137031
|
+
style: {
|
|
137032
|
+
height: 290,
|
|
137033
|
+
top: 0,
|
|
137034
|
+
bottom: 0,
|
|
137035
|
+
left: 0,
|
|
137036
|
+
right: 0
|
|
137037
|
+
}
|
|
137038
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137039
|
+
className: "cm-form-group"
|
|
137040
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137041
|
+
style: {
|
|
137042
|
+
overflow: "auto scroll",
|
|
137043
|
+
width: "875px",
|
|
137044
|
+
height: "300px",
|
|
137045
|
+
whiteSpace: "pre-wrap"
|
|
137046
|
+
}
|
|
137047
|
+
}, /*#__PURE__*/React$1__default.createElement("ul", null, arrayDataItems)))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137048
|
+
className: "cm-modal-footer"
|
|
137049
|
+
}, /*#__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", {
|
|
137050
|
+
style: {
|
|
137051
|
+
textAlign: "left"
|
|
137052
|
+
},
|
|
137053
|
+
type: "Close",
|
|
137054
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
137055
|
+
onClick: this.close
|
|
137056
|
+
}, "Close")));
|
|
137057
|
+
}
|
|
137058
|
+
}]);
|
|
137059
|
+
}(React$1__default.Component);
|
|
137060
|
+
var ResourcesModal$1 = connect("selectTheme", "selectResourceItems", "doModalClose", "doGetResourceData", ResourcesModal);
|
|
137061
|
+
|
|
137062
|
+
var url$2 = "".concat(process.env.REACT_APP_FUDS_RESOURCES_URL);
|
|
137063
|
+
var defaultHtml = [{
|
|
137064
|
+
"name": "FUDSMIS Portal - Default",
|
|
137065
|
+
"url": "https://fudsportal.usace.army.mil/"
|
|
137066
|
+
}, {
|
|
137067
|
+
"name": "IPaC Information for Planning and Consultation - Default",
|
|
137068
|
+
"url": "https://ipac.ecosphere.fws.gov/"
|
|
137069
|
+
}];
|
|
137070
|
+
var bundle$4 = {
|
|
137071
|
+
name: 'resources',
|
|
137072
|
+
getReducer: function getReducer() {
|
|
137073
|
+
var initialData = {
|
|
137074
|
+
items: defaultHtml,
|
|
137075
|
+
renderModal: false
|
|
137076
|
+
};
|
|
137077
|
+
return function () {
|
|
137078
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
137079
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
137080
|
+
type = _ref.type,
|
|
137081
|
+
payload = _ref.payload;
|
|
137082
|
+
switch (type) {
|
|
137083
|
+
case "RESOURCES_LOAD_TEST_DATA":
|
|
137084
|
+
case "RESOURCES_LOAD_PRODUCTION_DATA":
|
|
137085
|
+
case "RESOURCES_MODAL_WINDOW_OPENED":
|
|
137086
|
+
return Object.assign({}, state, payload);
|
|
137087
|
+
default:
|
|
137088
|
+
return state;
|
|
137089
|
+
}
|
|
137090
|
+
};
|
|
137091
|
+
},
|
|
137092
|
+
doGetResourceData: function doGetResourceData() {
|
|
137093
|
+
return function (_ref2) {
|
|
137094
|
+
var dispatch = _ref2.dispatch,
|
|
137095
|
+
store = _ref2.store,
|
|
137096
|
+
anonGet = _ref2.anonGet;
|
|
137097
|
+
anonGet(url$2, function (err, response, body) {
|
|
137098
|
+
if (err || response.statusCode !== 200) {
|
|
137099
|
+
// On Error Load Test Data
|
|
137100
|
+
dispatch({
|
|
137101
|
+
type: "RESOURCES_LOAD_TEST_DATA",
|
|
137102
|
+
payload: {
|
|
137103
|
+
items: defaultHtml,
|
|
137104
|
+
renderModal: true
|
|
137105
|
+
}
|
|
137106
|
+
});
|
|
137107
|
+
} else {
|
|
137108
|
+
try {
|
|
137109
|
+
console.log("Production Resource Data");
|
|
137110
|
+
console.log(body);
|
|
137111
|
+
var data = JSON.parse(body);
|
|
137112
|
+
console.log('data');
|
|
137113
|
+
console.log(data);
|
|
137114
|
+
var items = data.items;
|
|
137115
|
+
console.log("ITEMS");
|
|
137116
|
+
console.log(items);
|
|
137117
|
+
dispatch({
|
|
137118
|
+
type: "RESOURCES_LOAD_PRODUCTION_DATA",
|
|
137119
|
+
payload: {
|
|
137120
|
+
items: items,
|
|
137121
|
+
renderModal: true
|
|
137122
|
+
}
|
|
137123
|
+
});
|
|
137124
|
+
} catch (err) {
|
|
137125
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
137126
|
+
}
|
|
137127
|
+
}
|
|
137128
|
+
});
|
|
137129
|
+
};
|
|
137130
|
+
},
|
|
137131
|
+
doOpenModalResources: function doOpenModalResources() {
|
|
137132
|
+
return function (_ref3) {
|
|
137133
|
+
var dispatch = _ref3.dispatch,
|
|
137134
|
+
store = _ref3.store;
|
|
137135
|
+
store.doModalOpen({
|
|
137136
|
+
children: [ResourcesModal$1],
|
|
137137
|
+
options: {},
|
|
137138
|
+
openedBy: 'ResourcesButton'
|
|
137139
|
+
});
|
|
137140
|
+
dispatch({
|
|
137141
|
+
type: "RESOURCES_MODAL_WINDOW_OPENED",
|
|
137142
|
+
payload: {
|
|
137143
|
+
renderModal: false
|
|
137144
|
+
}
|
|
137145
|
+
});
|
|
137146
|
+
};
|
|
137147
|
+
},
|
|
137148
|
+
selectResourceItems: function selectResourceItems(state) {
|
|
137149
|
+
return state.resources.items;
|
|
137150
|
+
},
|
|
137151
|
+
reactRenderResourceModal: function reactRenderResourceModal(state) {
|
|
137152
|
+
if (state.resources.renderModal) return {
|
|
137153
|
+
actionCreator: "doOpenModalResources"
|
|
137154
|
+
};
|
|
137155
|
+
}
|
|
137156
|
+
};
|
|
137157
|
+
|
|
137158
|
+
var ResourcesButton = /*#__PURE__*/function (_React$Component) {
|
|
137159
|
+
function ResourcesButton(props) {
|
|
137160
|
+
var _this;
|
|
137161
|
+
_classCallCheck(this, ResourcesButton);
|
|
137162
|
+
_this = _callSuper(this, ResourcesButton, [props]);
|
|
137163
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
137164
|
+
_this.openModalResources = _this.openModalResources.bind(_this);
|
|
137165
|
+
return _this;
|
|
137166
|
+
}
|
|
137167
|
+
_inherits(ResourcesButton, _React$Component);
|
|
137168
|
+
return _createClass(ResourcesButton, [{
|
|
137169
|
+
key: "openModalResources",
|
|
137170
|
+
value: function openModalResources() {
|
|
137171
|
+
var doModalOpen = this.props.doModalOpen;
|
|
137172
|
+
doModalOpen({
|
|
137173
|
+
children: [ResourcesModal$1],
|
|
137174
|
+
options: {},
|
|
137175
|
+
openedBy: 'ResourcesButton'
|
|
137176
|
+
});
|
|
137177
|
+
}
|
|
137178
|
+
}, {
|
|
137179
|
+
key: "handleClick",
|
|
137180
|
+
value: function handleClick() {
|
|
137181
|
+
var doGetResourceData = this.props.doGetResourceData;
|
|
137182
|
+
this.openModalResources();
|
|
137183
|
+
doGetResourceData();
|
|
137184
|
+
}
|
|
137185
|
+
}, {
|
|
137186
|
+
key: "render",
|
|
137187
|
+
value: function render() {
|
|
137188
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
137189
|
+
iconClass: "mdi mdi-library",
|
|
137190
|
+
label: "Resources",
|
|
137191
|
+
title: "Resources",
|
|
137192
|
+
onClick: this.handleClick
|
|
137193
|
+
});
|
|
137194
|
+
}
|
|
137195
|
+
}]);
|
|
137196
|
+
}(React$1__default.Component);
|
|
137197
|
+
var resourcesButton = connect("doModalOpen", "doGetResourceData", ResourcesButton);
|
|
137198
|
+
|
|
137199
|
+
var plugin$5 = {
|
|
137200
|
+
pluginName: 'resources',
|
|
137201
|
+
enabled: true,
|
|
137202
|
+
bundle: bundle$4,
|
|
137203
|
+
components: [{
|
|
137204
|
+
component: resourcesButton,
|
|
137205
|
+
region: 'right-sidebar-top',
|
|
137206
|
+
sortOrder: 130
|
|
137207
|
+
}]
|
|
137208
|
+
};
|
|
137209
|
+
|
|
136981
137210
|
var CoordinateLatLonInput = function CoordinateLatLonInput(props) {
|
|
136982
137211
|
var label = props.label,
|
|
136983
137212
|
placeholder = props.placeholder,
|
|
@@ -137425,7 +137654,7 @@ function throttle(func, wait, options) {
|
|
|
137425
137654
|
|
|
137426
137655
|
var throttle_1 = throttle;
|
|
137427
137656
|
|
|
137428
|
-
var bundle$
|
|
137657
|
+
var bundle$5 = {
|
|
137429
137658
|
name: "coordinateDisplay",
|
|
137430
137659
|
getReducer: function getReducer() {
|
|
137431
137660
|
var initialData = {
|
|
@@ -137705,10 +137934,10 @@ var bundle$4 = {
|
|
|
137705
137934
|
}
|
|
137706
137935
|
};
|
|
137707
137936
|
|
|
137708
|
-
var plugin$
|
|
137937
|
+
var plugin$6 = {
|
|
137709
137938
|
pluginName: 'PositionText',
|
|
137710
137939
|
enabled: true,
|
|
137711
|
-
bundle: bundle$
|
|
137940
|
+
bundle: bundle$5,
|
|
137712
137941
|
components: [{
|
|
137713
137942
|
component: CoordinateDisplay$1,
|
|
137714
137943
|
region: 'lower-right-toolbar',
|
|
@@ -138714,7 +138943,7 @@ var drawSaveBundle = {
|
|
|
138714
138943
|
persistActions: ['DRAW_SAVE_COMPLETE']
|
|
138715
138944
|
};
|
|
138716
138945
|
|
|
138717
|
-
var plugin$
|
|
138946
|
+
var plugin$7 = {
|
|
138718
138947
|
pluginName: 'Draw Tools',
|
|
138719
138948
|
enabled: true,
|
|
138720
138949
|
bundle: [createDrawBundle({
|
|
@@ -138891,7 +139120,7 @@ var zoomScales = {
|
|
|
138891
139120
|
poi: 19,
|
|
138892
139121
|
"poi.landmark": 19
|
|
138893
139122
|
};
|
|
138894
|
-
var bundle$
|
|
139123
|
+
var bundle$6 = {
|
|
138895
139124
|
name: "geocoder",
|
|
138896
139125
|
getReducer: function getReducer() {
|
|
138897
139126
|
var initialData = {
|
|
@@ -139048,10 +139277,10 @@ var bundle$5 = {
|
|
|
139048
139277
|
}
|
|
139049
139278
|
};
|
|
139050
139279
|
|
|
139051
|
-
var plugin$
|
|
139280
|
+
var plugin$8 = {
|
|
139052
139281
|
pluginName: 'Geocoder',
|
|
139053
139282
|
enabled: true,
|
|
139054
|
-
bundle: bundle$
|
|
139283
|
+
bundle: bundle$6,
|
|
139055
139284
|
components: [{
|
|
139056
139285
|
component: SearchBar$1,
|
|
139057
139286
|
region: 'basic-toolbar',
|
|
@@ -141353,7 +141582,7 @@ function compareCoords(pair1, pair2) {
|
|
|
141353
141582
|
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
141354
141583
|
}
|
|
141355
141584
|
|
|
141356
|
-
var bundle$
|
|
141585
|
+
var bundle$7 = {
|
|
141357
141586
|
name: 'geojsonIdent',
|
|
141358
141587
|
getReducer: function getReducer() {
|
|
141359
141588
|
var initialData = {
|
|
@@ -141513,10 +141742,10 @@ var bundle$6 = {
|
|
|
141513
141742
|
}
|
|
141514
141743
|
};
|
|
141515
141744
|
|
|
141516
|
-
var plugin$
|
|
141745
|
+
var plugin$9 = {
|
|
141517
141746
|
pluginName: 'Identify GeoJSON',
|
|
141518
141747
|
enabled: true,
|
|
141519
|
-
bundle: bundle$
|
|
141748
|
+
bundle: bundle$7,
|
|
141520
141749
|
components: []
|
|
141521
141750
|
};
|
|
141522
141751
|
|
|
@@ -145287,7 +145516,7 @@ var bufferLayer = getLayer({
|
|
|
145287
145516
|
var identify = {
|
|
145288
145517
|
overlays: []
|
|
145289
145518
|
};
|
|
145290
|
-
var bundle$
|
|
145519
|
+
var bundle$8 = {
|
|
145291
145520
|
name: "identifyUi",
|
|
145292
145521
|
getReducer: function getReducer() {
|
|
145293
145522
|
var initialData = {
|
|
@@ -146159,10 +146388,10 @@ var VectorListener = {
|
|
|
146159
146388
|
}
|
|
146160
146389
|
};
|
|
146161
146390
|
|
|
146162
|
-
var plugin$
|
|
146391
|
+
var plugin$a = {
|
|
146163
146392
|
pluginName: "IdentifyTools",
|
|
146164
146393
|
enabled: true,
|
|
146165
|
-
bundle: [bundle$
|
|
146394
|
+
bundle: [bundle$8, ArcGisListener,
|
|
146166
146395
|
// GeoJsonListener,
|
|
146167
146396
|
// RasterListener,
|
|
146168
146397
|
VectorListener],
|
|
@@ -161729,7 +161958,7 @@ var LegendButton = /*#__PURE__*/function (_React$Component) {
|
|
|
161729
161958
|
|
|
161730
161959
|
//import { Style, Fill, Stroke } from "ol/style";
|
|
161731
161960
|
var req = null;
|
|
161732
|
-
var bundle$
|
|
161961
|
+
var bundle$9 = {
|
|
161733
161962
|
name: "legend",
|
|
161734
161963
|
getReducer: function getReducer() {
|
|
161735
161964
|
var initialData = {
|
|
@@ -161785,7 +162014,6 @@ var bundle$8 = {
|
|
|
161785
162014
|
heights: []
|
|
161786
162015
|
};
|
|
161787
162016
|
var src = url;
|
|
161788
|
-
// debugger
|
|
161789
162017
|
switch (type) {
|
|
161790
162018
|
case "ArcGIS":
|
|
161791
162019
|
src = "".concat(src, "/legend?f=pjson");
|
|
@@ -161794,7 +162022,6 @@ var bundle$8 = {
|
|
|
161794
162022
|
src = "".concat(src, "/legend?bandIds=&renderingRule=&f=pjson");
|
|
161795
162023
|
break;
|
|
161796
162024
|
case "EsriFeatureService":
|
|
161797
|
-
// debugger
|
|
161798
162025
|
if (legendOverride === true) {
|
|
161799
162026
|
src = "".concat(src, "/legend?f=pjson");
|
|
161800
162027
|
} else {
|
|
@@ -161803,9 +162030,7 @@ var bundle$8 = {
|
|
|
161803
162030
|
break;
|
|
161804
162031
|
}
|
|
161805
162032
|
req = xhr.get(src, function (err, response, body) {
|
|
161806
|
-
// debugger
|
|
161807
162033
|
if (err || response.statusCode !== 200) {
|
|
161808
|
-
// debugger
|
|
161809
162034
|
legendLayers[uid] = ["Legend not available!"];
|
|
161810
162035
|
dispatch({
|
|
161811
162036
|
type: "LEGEND_LAYERS_UPDATE_ERROR",
|
|
@@ -161818,13 +162043,11 @@ var bundle$8 = {
|
|
|
161818
162043
|
} else {
|
|
161819
162044
|
try {
|
|
161820
162045
|
var data = JSON.parse(body);
|
|
161821
|
-
// debugger
|
|
161822
162046
|
console.log(data);
|
|
161823
162047
|
if (type === "EsriFeatureService") {
|
|
161824
162048
|
if (legendOverride === true) {
|
|
161825
162049
|
store.doGenerateArcImages(data, lyr);
|
|
161826
162050
|
} else {
|
|
161827
|
-
// debugger
|
|
161828
162051
|
store.doGenerateEsriImages(data, lyr);
|
|
161829
162052
|
}
|
|
161830
162053
|
} else {
|
|
@@ -161947,11 +162170,9 @@ var bundle$8 = {
|
|
|
161947
162170
|
//TODO Logic below is needs to include other Esri styles.
|
|
161948
162171
|
console.log(drawingInfo.renderer);
|
|
161949
162172
|
console.log(drawingInfo.renderer.symbol);
|
|
161950
|
-
// debugger
|
|
161951
162173
|
switch (data.geometryType) {
|
|
161952
162174
|
case "esriGeometryPolygon":
|
|
161953
162175
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSSolid") {
|
|
161954
|
-
// debugger
|
|
161955
162176
|
var img = new Image();
|
|
161956
162177
|
var outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
161957
162178
|
var fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -161992,7 +162213,6 @@ var bundle$8 = {
|
|
|
161992
162213
|
}
|
|
161993
162214
|
});
|
|
161994
162215
|
} else if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
161995
|
-
// debugger
|
|
161996
162216
|
var _img = new Image();
|
|
161997
162217
|
var _outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
161998
162218
|
var _fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162188,7 +162408,6 @@ var bundle$8 = {
|
|
|
162188
162408
|
break;
|
|
162189
162409
|
case "esriGeometryPoint":
|
|
162190
162410
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162191
|
-
// debugger
|
|
162192
162411
|
var _img3 = new Image();
|
|
162193
162412
|
_img3.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162194
162413
|
_img3.addEventListener("load", function () {
|
|
@@ -162380,8 +162599,6 @@ var bundle$8 = {
|
|
|
162380
162599
|
img.src = canvas.toDataURL(); //set src using data URI from canvas
|
|
162381
162600
|
img.alt = "Style for ".concat(displayName);
|
|
162382
162601
|
img.crossOrigin = "anonymous";
|
|
162383
|
-
// debugger
|
|
162384
|
-
|
|
162385
162602
|
legendCanvases[uid].canvas.push(canvas);
|
|
162386
162603
|
dispatch({
|
|
162387
162604
|
type: "LEGEND_CANVAS_ADDED",
|
|
@@ -162412,9 +162629,7 @@ var bundle$8 = {
|
|
|
162412
162629
|
}
|
|
162413
162630
|
break;
|
|
162414
162631
|
case "esriGeometryMultipoint":
|
|
162415
|
-
// debugger
|
|
162416
162632
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162417
|
-
// debugger
|
|
162418
162633
|
var _img5 = new Image();
|
|
162419
162634
|
_img5.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162420
162635
|
_img5.addEventListener("load", function () {
|
|
@@ -162669,10 +162884,10 @@ var bundle$8 = {
|
|
|
162669
162884
|
}
|
|
162670
162885
|
};
|
|
162671
162886
|
|
|
162672
|
-
var plugin$
|
|
162887
|
+
var plugin$b = {
|
|
162673
162888
|
pluginName: "Legend",
|
|
162674
162889
|
enabled: true,
|
|
162675
|
-
bundle: bundle$
|
|
162890
|
+
bundle: bundle$9,
|
|
162676
162891
|
components: [{
|
|
162677
162892
|
component: LegendButton,
|
|
162678
162893
|
region: "left-sidebar-top",
|
|
@@ -163065,7 +163280,7 @@ var modifyArea = createInteraction({
|
|
|
163065
163280
|
});
|
|
163066
163281
|
|
|
163067
163282
|
// START BUNDLE
|
|
163068
|
-
var bundle$
|
|
163283
|
+
var bundle$a = {
|
|
163069
163284
|
name: "measure",
|
|
163070
163285
|
getReducer: function getReducer() {
|
|
163071
163286
|
var initialData = {
|
|
@@ -163292,10 +163507,10 @@ var bundle$9 = {
|
|
|
163292
163507
|
}
|
|
163293
163508
|
};
|
|
163294
163509
|
|
|
163295
|
-
var plugin$
|
|
163510
|
+
var plugin$c = {
|
|
163296
163511
|
pluginName: 'MeasureArea',
|
|
163297
163512
|
enabled: true,
|
|
163298
|
-
bundle: bundle$
|
|
163513
|
+
bundle: bundle$a,
|
|
163299
163514
|
components: [{
|
|
163300
163515
|
component: MeasureToolsButton$1,
|
|
163301
163516
|
region: 'basic-toolbar',
|
|
@@ -163303,7 +163518,7 @@ var plugin$b = {
|
|
|
163303
163518
|
}]
|
|
163304
163519
|
};
|
|
163305
163520
|
|
|
163306
|
-
var bundle$
|
|
163521
|
+
var bundle$b = {
|
|
163307
163522
|
name: 'permalink',
|
|
163308
163523
|
getReducer: function getReducer() {
|
|
163309
163524
|
var initialData = {
|
|
@@ -163454,10 +163669,10 @@ var PermalinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
163454
163669
|
}(React$1__default.Component);
|
|
163455
163670
|
var PermalinkButton$1 = connect('doConstructPermalinkParams', 'doModalOpen', PermalinkButton);
|
|
163456
163671
|
|
|
163457
|
-
var plugin$
|
|
163672
|
+
var plugin$d = {
|
|
163458
163673
|
pluginName: 'Permalink',
|
|
163459
163674
|
enabled: true,
|
|
163460
|
-
bundle: bundle$
|
|
163675
|
+
bundle: bundle$b,
|
|
163461
163676
|
components: [{
|
|
163462
163677
|
component: PermalinkButton$1,
|
|
163463
163678
|
region: 'right-sidebar-top',
|
|
@@ -163584,7 +163799,7 @@ function sum$2(array) {
|
|
|
163584
163799
|
|
|
163585
163800
|
var sum_1 = sum$2;
|
|
163586
163801
|
|
|
163587
|
-
var bundle$
|
|
163802
|
+
var bundle$c = {
|
|
163588
163803
|
name: "print",
|
|
163589
163804
|
getReducer: function getReducer() {
|
|
163590
163805
|
var initialData = {
|
|
@@ -163894,10 +164109,10 @@ var Button = function Button(_ref) {
|
|
|
163894
164109
|
};
|
|
163895
164110
|
var Button$1 = connect("doPrintMap", Button);
|
|
163896
164111
|
|
|
163897
|
-
var plugin$
|
|
164112
|
+
var plugin$e = {
|
|
163898
164113
|
pluginName: "Print Map",
|
|
163899
164114
|
enabled: true,
|
|
163900
|
-
bundle: bundle$
|
|
164115
|
+
bundle: bundle$c,
|
|
163901
164116
|
components: [{
|
|
163902
164117
|
component: Button$1,
|
|
163903
164118
|
region: "basic-toolbar",
|
|
@@ -164137,7 +164352,7 @@ var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
|
164137
164352
|
}(React$1__default.Component);
|
|
164138
164353
|
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
164139
164354
|
|
|
164140
|
-
var bundle$
|
|
164355
|
+
var bundle$d = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
164141
164356
|
name: "questionsTab",
|
|
164142
164357
|
getReducer: function getReducer() {
|
|
164143
164358
|
var initialData = {
|
|
@@ -164365,10 +164580,10 @@ var bundle$c = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
164365
164580
|
return state.questionsTab.errorList;
|
|
164366
164581
|
});
|
|
164367
164582
|
|
|
164368
|
-
var plugin$
|
|
164583
|
+
var plugin$f = {
|
|
164369
164584
|
pluginName: "questionsTab",
|
|
164370
164585
|
enabled: true,
|
|
164371
|
-
bundle: bundle$
|
|
164586
|
+
bundle: bundle$d,
|
|
164372
164587
|
components: [{
|
|
164373
164588
|
component: questionsTab$1,
|
|
164374
164589
|
region: "right-sidebar-top",
|
|
@@ -164376,7 +164591,7 @@ var plugin$e = {
|
|
|
164376
164591
|
}]
|
|
164377
164592
|
};
|
|
164378
164593
|
|
|
164379
|
-
var bundle$
|
|
164594
|
+
var bundle$e = {
|
|
164380
164595
|
name: "rasterIdent",
|
|
164381
164596
|
getReducer: function getReducer() {
|
|
164382
164597
|
var initialData = {
|
|
@@ -164462,10 +164677,10 @@ var bundle$d = {
|
|
|
164462
164677
|
}
|
|
164463
164678
|
};
|
|
164464
164679
|
|
|
164465
|
-
var plugin$
|
|
164680
|
+
var plugin$g = {
|
|
164466
164681
|
pluginName: 'Identify Raster',
|
|
164467
164682
|
enabled: true,
|
|
164468
|
-
bundle: bundle$
|
|
164683
|
+
bundle: bundle$e,
|
|
164469
164684
|
components: []
|
|
164470
164685
|
};
|
|
164471
164686
|
|
|
@@ -164504,7 +164719,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164504
164719
|
}(React$1__default.Component);
|
|
164505
164720
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
164506
164721
|
|
|
164507
|
-
var plugin$
|
|
164722
|
+
var plugin$h = {
|
|
164508
164723
|
pluginName: 'NorthButton',
|
|
164509
164724
|
enabled: true,
|
|
164510
164725
|
components: [{
|
|
@@ -164514,7 +164729,7 @@ var plugin$g = {
|
|
|
164514
164729
|
}]
|
|
164515
164730
|
};
|
|
164516
164731
|
|
|
164517
|
-
var bundle$
|
|
164732
|
+
var bundle$f = {
|
|
164518
164733
|
name: 'themeSwitcher',
|
|
164519
164734
|
getReducer: function getReducer() {
|
|
164520
164735
|
var initialData = {
|
|
@@ -164619,7 +164834,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164619
164834
|
}]);
|
|
164620
164835
|
}(React$1__default.Component);
|
|
164621
164836
|
|
|
164622
|
-
var plugin$
|
|
164837
|
+
var plugin$i = {
|
|
164623
164838
|
pluginName: 'Theme Switcher',
|
|
164624
164839
|
enabled: true,
|
|
164625
164840
|
components: [{
|
|
@@ -164627,7 +164842,7 @@ var plugin$h = {
|
|
|
164627
164842
|
region: 'left-sidebar-bottom',
|
|
164628
164843
|
sortOrder: 30
|
|
164629
164844
|
}],
|
|
164630
|
-
bundle: bundle$
|
|
164845
|
+
bundle: bundle$f
|
|
164631
164846
|
};
|
|
164632
164847
|
|
|
164633
164848
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -165604,7 +165819,7 @@ var treeViewDownload = {
|
|
|
165604
165819
|
}
|
|
165605
165820
|
};
|
|
165606
165821
|
|
|
165607
|
-
var plugin$
|
|
165822
|
+
var plugin$j = function plugin(controls) {
|
|
165608
165823
|
return {
|
|
165609
165824
|
pluginName: "LayerTree",
|
|
165610
165825
|
enabled: true,
|
|
@@ -165618,7 +165833,7 @@ var plugin$i = function plugin(controls) {
|
|
|
165618
165833
|
};
|
|
165619
165834
|
|
|
165620
165835
|
var geoJSON$3 = new GeoJSON();
|
|
165621
|
-
var bundle$
|
|
165836
|
+
var bundle$g = {
|
|
165622
165837
|
name: "vectorIdent",
|
|
165623
165838
|
getReducer: function getReducer() {
|
|
165624
165839
|
var initialData = {
|
|
@@ -165750,10 +165965,10 @@ var bundle$f = {
|
|
|
165750
165965
|
}
|
|
165751
165966
|
};
|
|
165752
165967
|
|
|
165753
|
-
var plugin$
|
|
165968
|
+
var plugin$k = {
|
|
165754
165969
|
pluginName: 'Identify Vector',
|
|
165755
165970
|
enabled: true,
|
|
165756
|
-
bundle: bundle$
|
|
165971
|
+
bundle: bundle$g,
|
|
165757
165972
|
components: []
|
|
165758
165973
|
};
|
|
165759
165974
|
|
|
@@ -165807,7 +166022,7 @@ function values$1(object) {
|
|
|
165807
166022
|
|
|
165808
166023
|
var values_1 = values$1;
|
|
165809
166024
|
|
|
165810
|
-
var bundle$
|
|
166025
|
+
var bundle$h = {
|
|
165811
166026
|
name: 'vectorSearch',
|
|
165812
166027
|
getReducer: function getReducer() {
|
|
165813
166028
|
var initialData = {
|
|
@@ -165921,10 +166136,10 @@ var bundle$g = {
|
|
|
165921
166136
|
}
|
|
165922
166137
|
};
|
|
165923
166138
|
|
|
165924
|
-
var plugin$
|
|
166139
|
+
var plugin$l = {
|
|
165925
166140
|
pluginName: 'Vector Search',
|
|
165926
166141
|
enabled: true,
|
|
165927
|
-
bundle: bundle$
|
|
166142
|
+
bundle: bundle$h,
|
|
165928
166143
|
components: []
|
|
165929
166144
|
};
|
|
165930
166145
|
|
|
@@ -165986,7 +166201,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
165986
166201
|
}(React$1__default.Component);
|
|
165987
166202
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
165988
166203
|
|
|
165989
|
-
var plugin$
|
|
166204
|
+
var plugin$m = {
|
|
165990
166205
|
pluginName: 'ZoomButtons',
|
|
165991
166206
|
enabled: true,
|
|
165992
166207
|
components: [{
|
|
@@ -166033,7 +166248,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166033
166248
|
}(React$1__default.Component);
|
|
166034
166249
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
166035
166250
|
|
|
166036
|
-
var bundle$
|
|
166251
|
+
var bundle$i = {
|
|
166037
166252
|
name: "zoomLevel",
|
|
166038
166253
|
getReducer: function getReducer() {
|
|
166039
166254
|
var initialData = {
|
|
@@ -166070,10 +166285,10 @@ var bundle$h = {
|
|
|
166070
166285
|
}
|
|
166071
166286
|
};
|
|
166072
166287
|
|
|
166073
|
-
var plugin$
|
|
166288
|
+
var plugin$n = {
|
|
166074
166289
|
pluginName: 'zoomIndicator',
|
|
166075
166290
|
enabled: true,
|
|
166076
|
-
bundle: bundle$
|
|
166291
|
+
bundle: bundle$i,
|
|
166077
166292
|
components: [{
|
|
166078
166293
|
component: zoomIndicator$1,
|
|
166079
166294
|
region: 'right-sidebar-top',
|
|
@@ -166139,7 +166354,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166139
166354
|
}(React$1__default.Component);
|
|
166140
166355
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
166141
166356
|
|
|
166142
|
-
var bundle$
|
|
166357
|
+
var bundle$j = {
|
|
166143
166358
|
name: "zoomHome",
|
|
166144
166359
|
getReducer: function getReducer() {
|
|
166145
166360
|
var initialData = {
|
|
@@ -166207,10 +166422,10 @@ var bundle$i = {
|
|
|
166207
166422
|
}
|
|
166208
166423
|
};
|
|
166209
166424
|
|
|
166210
|
-
var plugin$
|
|
166425
|
+
var plugin$o = {
|
|
166211
166426
|
pluginName: "ZoomToInitial",
|
|
166212
166427
|
enabled: true,
|
|
166213
|
-
bundle: bundle$
|
|
166428
|
+
bundle: bundle$j,
|
|
166214
166429
|
components: [{
|
|
166215
166430
|
component: ZoomHomeButton$1,
|
|
166216
166431
|
region: "left-sidebar-top",
|
|
@@ -166279,7 +166494,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
166279
166494
|
var zoombox = createInteraction({
|
|
166280
166495
|
interaction: 'dragbox'
|
|
166281
166496
|
});
|
|
166282
|
-
var bundle$
|
|
166497
|
+
var bundle$k = {
|
|
166283
166498
|
name: 'zoombox',
|
|
166284
166499
|
getReducer: function getReducer() {
|
|
166285
166500
|
var initialData = {
|
|
@@ -166372,10 +166587,10 @@ var bundle$j = {
|
|
|
166372
166587
|
}
|
|
166373
166588
|
};
|
|
166374
166589
|
|
|
166375
|
-
var plugin$
|
|
166590
|
+
var plugin$p = {
|
|
166376
166591
|
pluginName: 'ZoomtoExtent',
|
|
166377
166592
|
enabled: true,
|
|
166378
|
-
bundle: bundle$
|
|
166593
|
+
bundle: bundle$k,
|
|
166379
166594
|
components: [{
|
|
166380
166595
|
component: ZoomToBoxButton$1,
|
|
166381
166596
|
region: 'basic-toolbar',
|
|
@@ -166418,7 +166633,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166418
166633
|
}(React$1__default.Component);
|
|
166419
166634
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
166420
166635
|
|
|
166421
|
-
var bundle$
|
|
166636
|
+
var bundle$l = {
|
|
166422
166637
|
name: "mapLoading",
|
|
166423
166638
|
getReducer: function getReducer() {
|
|
166424
166639
|
var initialData = {
|
|
@@ -166451,10 +166666,10 @@ var bundle$k = {
|
|
|
166451
166666
|
}
|
|
166452
166667
|
};
|
|
166453
166668
|
|
|
166454
|
-
var plugin$
|
|
166669
|
+
var plugin$q = {
|
|
166455
166670
|
pluginName: "MapLoadingIndicator",
|
|
166456
166671
|
enabled: true,
|
|
166457
|
-
bundle: bundle$
|
|
166672
|
+
bundle: bundle$l,
|
|
166458
166673
|
components: [{
|
|
166459
166674
|
component: MapLoadingIndicator$1,
|
|
166460
166675
|
region: "lower-right-toolbar",
|
|
@@ -166484,26 +166699,27 @@ exports.arcgisIdent = plugin$1;
|
|
|
166484
166699
|
exports.basemapSwitcher = plugin$2;
|
|
166485
166700
|
exports.bookmarks = plugin$3;
|
|
166486
166701
|
exports.changeLog = plugin$4;
|
|
166487
|
-
exports.coordDisplay = plugin$
|
|
166488
|
-
exports.draw = plugin$
|
|
166702
|
+
exports.coordDisplay = plugin$6;
|
|
166703
|
+
exports.draw = plugin$7;
|
|
166489
166704
|
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.
|
|
166705
|
+
exports.geocoder = plugin$8;
|
|
166706
|
+
exports.geojsonIdent = plugin$9;
|
|
166707
|
+
exports.identify = plugin$a;
|
|
166708
|
+
exports.legend = plugin$b;
|
|
166709
|
+
exports.mapLoadingIndicator = plugin$q;
|
|
166710
|
+
exports.measureTools = plugin$c;
|
|
166711
|
+
exports.permalink = plugin$d;
|
|
166712
|
+
exports.printMap = plugin$e;
|
|
166713
|
+
exports.questionsTab = plugin$f;
|
|
166714
|
+
exports.rasterIdent = plugin$g;
|
|
166715
|
+
exports.resources = plugin$5;
|
|
166716
|
+
exports.rotateNorth = plugin$h;
|
|
166717
|
+
exports.themeSwitcher = plugin$i;
|
|
166718
|
+
exports.treeView = plugin$j;
|
|
166503
166719
|
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$
|
|
166720
|
+
exports.vectorIdent = plugin$k;
|
|
166721
|
+
exports.vectorSearch = plugin$l;
|
|
166722
|
+
exports.zoomHome = plugin$o;
|
|
166723
|
+
exports.zoomInOut = plugin$m;
|
|
166724
|
+
exports.zoomLevel = plugin$n;
|
|
166725
|
+
exports.zoomToBox = plugin$p;
|