@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/dev.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'));
|
|
@@ -106655,7 +106655,7 @@ var config = {
|
|
|
106655
106655
|
};
|
|
106656
106656
|
|
|
106657
106657
|
var name = "@corpsmap/corpsmap";
|
|
106658
|
-
var version$1 = "3.2.
|
|
106658
|
+
var version$1 = "3.2.44";
|
|
106659
106659
|
var description = "CorpsMap as React Components";
|
|
106660
106660
|
var main = "index.js";
|
|
106661
106661
|
var scripts = {
|
|
@@ -117975,7 +117975,7 @@ var binaryajax = binaryAjax;
|
|
|
117975
117975
|
function binaryAjax(url) {
|
|
117976
117976
|
return new lib$2(function(resolve, reject) {
|
|
117977
117977
|
var type = url.slice(-3);
|
|
117978
|
-
var parsed = url$
|
|
117978
|
+
var parsed = url$3.parse(url);
|
|
117979
117979
|
var method = http;
|
|
117980
117980
|
if (parsed.protocol === 'https:') {
|
|
117981
117981
|
method = https;
|
|
@@ -136798,19 +136798,25 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
|
|
|
136798
136798
|
} : {
|
|
136799
136799
|
listStyleType: "none"
|
|
136800
136800
|
}
|
|
136801
|
-
}, data.change_date ? /*#__PURE__*/React$1__default.createElement("li",
|
|
136801
|
+
}, data.change_date ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136802
|
+
key: data.change_date
|
|
136803
|
+
}, /*#__PURE__*/React$1__default.createElement("b", null, _this2.formatDate(data.change_date))) : null, data.environment ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136804
|
+
key: data.environment,
|
|
136802
136805
|
style: {
|
|
136803
136806
|
listStyleType: "none"
|
|
136804
136807
|
}
|
|
136805
136808
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "Environment:"), " ", data.environment, " ") : null, data.change_type ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136809
|
+
key: data.change_date,
|
|
136806
136810
|
style: {
|
|
136807
136811
|
listStyleType: "none"
|
|
136808
136812
|
}
|
|
136809
136813
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "Change Type:"), " ", data.change_type) : null, data.district_code ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136814
|
+
key: data.district_code,
|
|
136810
136815
|
style: {
|
|
136811
136816
|
listStyleType: "none"
|
|
136812
136817
|
}
|
|
136813
136818
|
}, /*#__PURE__*/React$1__default.createElement("b", null, "District:"), " ", data.district_code) : null, data.description ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
136819
|
+
key: data.description,
|
|
136814
136820
|
style: {
|
|
136815
136821
|
listStyleType: "none"
|
|
136816
136822
|
}
|
|
@@ -137064,6 +137070,229 @@ var plugin$4 = {
|
|
|
137064
137070
|
}]
|
|
137065
137071
|
};
|
|
137066
137072
|
|
|
137073
|
+
var ResourcesModal = /*#__PURE__*/function (_React$Component) {
|
|
137074
|
+
function ResourcesModal(props) {
|
|
137075
|
+
var _this;
|
|
137076
|
+
_classCallCheck(this, ResourcesModal);
|
|
137077
|
+
_this = _callSuper(this, ResourcesModal, [props]);
|
|
137078
|
+
_this.state = {};
|
|
137079
|
+
_this.close = _this.close.bind(_this);
|
|
137080
|
+
return _this;
|
|
137081
|
+
}
|
|
137082
|
+
_inherits(ResourcesModal, _React$Component);
|
|
137083
|
+
return _createClass(ResourcesModal, [{
|
|
137084
|
+
key: "close",
|
|
137085
|
+
value: function close() {
|
|
137086
|
+
var doModalClose = this.props.doModalClose;
|
|
137087
|
+
doModalClose();
|
|
137088
|
+
}
|
|
137089
|
+
}, {
|
|
137090
|
+
key: "render",
|
|
137091
|
+
value: function render() {
|
|
137092
|
+
var _this$props = this.props,
|
|
137093
|
+
theme = _this$props.theme,
|
|
137094
|
+
doGetResourceData = _this$props.doGetResourceData,
|
|
137095
|
+
resourceItems = _this$props.resourceItems;
|
|
137096
|
+
var arrayDataItems = resourceItems.map(function (data) {
|
|
137097
|
+
return /*#__PURE__*/React$1__default.createElement("li", {
|
|
137098
|
+
style: Object.keys(data).length > 0 ? {
|
|
137099
|
+
listStyleType: "disc"
|
|
137100
|
+
} : {
|
|
137101
|
+
listStyleType: "none"
|
|
137102
|
+
}
|
|
137103
|
+
}, data.name ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
137104
|
+
style: {
|
|
137105
|
+
listStyleType: "none"
|
|
137106
|
+
}
|
|
137107
|
+
}, /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("a", {
|
|
137108
|
+
href: data.url,
|
|
137109
|
+
target: "_blank",
|
|
137110
|
+
rel: "noreferrer nofollow noopener"
|
|
137111
|
+
}, data.name))) : null, /*#__PURE__*/React$1__default.createElement("br", null));
|
|
137112
|
+
});
|
|
137113
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137114
|
+
className: "cm-modal-header " + theme
|
|
137115
|
+
}, "Resources"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137116
|
+
className: "cm-modal-body",
|
|
137117
|
+
style: {
|
|
137118
|
+
height: 290,
|
|
137119
|
+
top: 0,
|
|
137120
|
+
bottom: 0,
|
|
137121
|
+
left: 0,
|
|
137122
|
+
right: 0
|
|
137123
|
+
}
|
|
137124
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137125
|
+
className: "cm-form-group"
|
|
137126
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137127
|
+
style: {
|
|
137128
|
+
overflow: "auto scroll",
|
|
137129
|
+
width: "875px",
|
|
137130
|
+
height: "300px",
|
|
137131
|
+
whiteSpace: "pre-wrap"
|
|
137132
|
+
}
|
|
137133
|
+
}, /*#__PURE__*/React$1__default.createElement("ul", null, arrayDataItems)))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137134
|
+
className: "cm-modal-footer"
|
|
137135
|
+
}, /*#__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", {
|
|
137136
|
+
style: {
|
|
137137
|
+
textAlign: "left"
|
|
137138
|
+
},
|
|
137139
|
+
type: "Close",
|
|
137140
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
137141
|
+
onClick: this.close
|
|
137142
|
+
}, "Close")));
|
|
137143
|
+
}
|
|
137144
|
+
}]);
|
|
137145
|
+
}(React$1__default.Component);
|
|
137146
|
+
var ResourcesModal$1 = connect("selectTheme", "selectResourceItems", "doModalClose", "doGetResourceData", ResourcesModal);
|
|
137147
|
+
|
|
137148
|
+
var url$2 = "".concat(process.env.REACT_APP_FUDS_RESOURCES_URL);
|
|
137149
|
+
var defaultHtml = [{
|
|
137150
|
+
"name": "FUDSMIS Portal - Default",
|
|
137151
|
+
"url": "https://fudsportal.usace.army.mil/"
|
|
137152
|
+
}, {
|
|
137153
|
+
"name": "IPaC Information for Planning and Consultation - Default",
|
|
137154
|
+
"url": "https://ipac.ecosphere.fws.gov/"
|
|
137155
|
+
}];
|
|
137156
|
+
var bundle$4 = {
|
|
137157
|
+
name: 'resources',
|
|
137158
|
+
getReducer: function getReducer() {
|
|
137159
|
+
var initialData = {
|
|
137160
|
+
items: defaultHtml,
|
|
137161
|
+
renderModal: false
|
|
137162
|
+
};
|
|
137163
|
+
return function () {
|
|
137164
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
137165
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
137166
|
+
type = _ref.type,
|
|
137167
|
+
payload = _ref.payload;
|
|
137168
|
+
switch (type) {
|
|
137169
|
+
case "RESOURCES_LOAD_TEST_DATA":
|
|
137170
|
+
case "RESOURCES_LOAD_PRODUCTION_DATA":
|
|
137171
|
+
case "RESOURCES_MODAL_WINDOW_OPENED":
|
|
137172
|
+
return Object.assign({}, state, payload);
|
|
137173
|
+
default:
|
|
137174
|
+
return state;
|
|
137175
|
+
}
|
|
137176
|
+
};
|
|
137177
|
+
},
|
|
137178
|
+
doGetResourceData: function doGetResourceData() {
|
|
137179
|
+
return function (_ref2) {
|
|
137180
|
+
var dispatch = _ref2.dispatch,
|
|
137181
|
+
store = _ref2.store,
|
|
137182
|
+
anonGet = _ref2.anonGet;
|
|
137183
|
+
anonGet(url$2, function (err, response, body) {
|
|
137184
|
+
if (err || response.statusCode !== 200) {
|
|
137185
|
+
// On Error Load Test Data
|
|
137186
|
+
dispatch({
|
|
137187
|
+
type: "RESOURCES_LOAD_TEST_DATA",
|
|
137188
|
+
payload: {
|
|
137189
|
+
items: defaultHtml,
|
|
137190
|
+
renderModal: true
|
|
137191
|
+
}
|
|
137192
|
+
});
|
|
137193
|
+
} else {
|
|
137194
|
+
try {
|
|
137195
|
+
console.log("Production Resource Data");
|
|
137196
|
+
console.log(body);
|
|
137197
|
+
var data = JSON.parse(body);
|
|
137198
|
+
console.log('data');
|
|
137199
|
+
console.log(data);
|
|
137200
|
+
var items = data.items;
|
|
137201
|
+
console.log("ITEMS");
|
|
137202
|
+
console.log(items);
|
|
137203
|
+
dispatch({
|
|
137204
|
+
type: "RESOURCES_LOAD_PRODUCTION_DATA",
|
|
137205
|
+
payload: {
|
|
137206
|
+
items: items,
|
|
137207
|
+
renderModal: true
|
|
137208
|
+
}
|
|
137209
|
+
});
|
|
137210
|
+
} catch (err) {
|
|
137211
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
137212
|
+
}
|
|
137213
|
+
}
|
|
137214
|
+
});
|
|
137215
|
+
};
|
|
137216
|
+
},
|
|
137217
|
+
doOpenModalResources: function doOpenModalResources() {
|
|
137218
|
+
return function (_ref3) {
|
|
137219
|
+
var dispatch = _ref3.dispatch,
|
|
137220
|
+
store = _ref3.store;
|
|
137221
|
+
store.doModalOpen({
|
|
137222
|
+
children: [ResourcesModal$1],
|
|
137223
|
+
options: {},
|
|
137224
|
+
openedBy: 'ResourcesButton'
|
|
137225
|
+
});
|
|
137226
|
+
dispatch({
|
|
137227
|
+
type: "RESOURCES_MODAL_WINDOW_OPENED",
|
|
137228
|
+
payload: {
|
|
137229
|
+
renderModal: false
|
|
137230
|
+
}
|
|
137231
|
+
});
|
|
137232
|
+
};
|
|
137233
|
+
},
|
|
137234
|
+
selectResourceItems: function selectResourceItems(state) {
|
|
137235
|
+
return state.resources.items;
|
|
137236
|
+
},
|
|
137237
|
+
reactRenderResourceModal: function reactRenderResourceModal(state) {
|
|
137238
|
+
if (state.resources.renderModal) return {
|
|
137239
|
+
actionCreator: "doOpenModalResources"
|
|
137240
|
+
};
|
|
137241
|
+
}
|
|
137242
|
+
};
|
|
137243
|
+
|
|
137244
|
+
var ResourcesButton = /*#__PURE__*/function (_React$Component) {
|
|
137245
|
+
function ResourcesButton(props) {
|
|
137246
|
+
var _this;
|
|
137247
|
+
_classCallCheck(this, ResourcesButton);
|
|
137248
|
+
_this = _callSuper(this, ResourcesButton, [props]);
|
|
137249
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
137250
|
+
_this.openModalResources = _this.openModalResources.bind(_this);
|
|
137251
|
+
return _this;
|
|
137252
|
+
}
|
|
137253
|
+
_inherits(ResourcesButton, _React$Component);
|
|
137254
|
+
return _createClass(ResourcesButton, [{
|
|
137255
|
+
key: "openModalResources",
|
|
137256
|
+
value: function openModalResources() {
|
|
137257
|
+
var doModalOpen = this.props.doModalOpen;
|
|
137258
|
+
doModalOpen({
|
|
137259
|
+
children: [ResourcesModal$1],
|
|
137260
|
+
options: {},
|
|
137261
|
+
openedBy: 'ResourcesButton'
|
|
137262
|
+
});
|
|
137263
|
+
}
|
|
137264
|
+
}, {
|
|
137265
|
+
key: "handleClick",
|
|
137266
|
+
value: function handleClick() {
|
|
137267
|
+
var doGetResourceData = this.props.doGetResourceData;
|
|
137268
|
+
this.openModalResources();
|
|
137269
|
+
doGetResourceData();
|
|
137270
|
+
}
|
|
137271
|
+
}, {
|
|
137272
|
+
key: "render",
|
|
137273
|
+
value: function render() {
|
|
137274
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
137275
|
+
iconClass: "mdi mdi-library",
|
|
137276
|
+
label: "Resources",
|
|
137277
|
+
title: "Resources",
|
|
137278
|
+
onClick: this.handleClick
|
|
137279
|
+
});
|
|
137280
|
+
}
|
|
137281
|
+
}]);
|
|
137282
|
+
}(React$1__default.Component);
|
|
137283
|
+
var resourcesButton = connect("doModalOpen", "doGetResourceData", ResourcesButton);
|
|
137284
|
+
|
|
137285
|
+
var plugin$5 = {
|
|
137286
|
+
pluginName: 'resources',
|
|
137287
|
+
enabled: true,
|
|
137288
|
+
bundle: bundle$4,
|
|
137289
|
+
components: [{
|
|
137290
|
+
component: resourcesButton,
|
|
137291
|
+
region: 'right-sidebar-top',
|
|
137292
|
+
sortOrder: 130
|
|
137293
|
+
}]
|
|
137294
|
+
};
|
|
137295
|
+
|
|
137067
137296
|
var CoordinateLatLonInput = function CoordinateLatLonInput(props) {
|
|
137068
137297
|
var label = props.label,
|
|
137069
137298
|
placeholder = props.placeholder,
|
|
@@ -137511,7 +137740,7 @@ function throttle(func, wait, options) {
|
|
|
137511
137740
|
|
|
137512
137741
|
var throttle_1 = throttle;
|
|
137513
137742
|
|
|
137514
|
-
var bundle$
|
|
137743
|
+
var bundle$5 = {
|
|
137515
137744
|
name: "coordinateDisplay",
|
|
137516
137745
|
getReducer: function getReducer() {
|
|
137517
137746
|
var initialData = {
|
|
@@ -137791,10 +138020,10 @@ var bundle$4 = {
|
|
|
137791
138020
|
}
|
|
137792
138021
|
};
|
|
137793
138022
|
|
|
137794
|
-
var plugin$
|
|
138023
|
+
var plugin$6 = {
|
|
137795
138024
|
pluginName: 'PositionText',
|
|
137796
138025
|
enabled: true,
|
|
137797
|
-
bundle: bundle$
|
|
138026
|
+
bundle: bundle$5,
|
|
137798
138027
|
components: [{
|
|
137799
138028
|
component: CoordinateDisplay$1,
|
|
137800
138029
|
region: 'lower-right-toolbar',
|
|
@@ -138800,7 +139029,7 @@ var drawSaveBundle = {
|
|
|
138800
139029
|
persistActions: ['DRAW_SAVE_COMPLETE']
|
|
138801
139030
|
};
|
|
138802
139031
|
|
|
138803
|
-
var plugin$
|
|
139032
|
+
var plugin$7 = {
|
|
138804
139033
|
pluginName: 'Draw Tools',
|
|
138805
139034
|
enabled: true,
|
|
138806
139035
|
bundle: [createDrawBundle({
|
|
@@ -138977,7 +139206,7 @@ var zoomScales = {
|
|
|
138977
139206
|
poi: 19,
|
|
138978
139207
|
"poi.landmark": 19
|
|
138979
139208
|
};
|
|
138980
|
-
var bundle$
|
|
139209
|
+
var bundle$6 = {
|
|
138981
139210
|
name: "geocoder",
|
|
138982
139211
|
getReducer: function getReducer() {
|
|
138983
139212
|
var initialData = {
|
|
@@ -139134,10 +139363,10 @@ var bundle$5 = {
|
|
|
139134
139363
|
}
|
|
139135
139364
|
};
|
|
139136
139365
|
|
|
139137
|
-
var plugin$
|
|
139366
|
+
var plugin$8 = {
|
|
139138
139367
|
pluginName: 'Geocoder',
|
|
139139
139368
|
enabled: true,
|
|
139140
|
-
bundle: bundle$
|
|
139369
|
+
bundle: bundle$6,
|
|
139141
139370
|
components: [{
|
|
139142
139371
|
component: SearchBar$1,
|
|
139143
139372
|
region: 'basic-toolbar',
|
|
@@ -141439,7 +141668,7 @@ function compareCoords(pair1, pair2) {
|
|
|
141439
141668
|
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
141440
141669
|
}
|
|
141441
141670
|
|
|
141442
|
-
var bundle$
|
|
141671
|
+
var bundle$7 = {
|
|
141443
141672
|
name: 'geojsonIdent',
|
|
141444
141673
|
getReducer: function getReducer() {
|
|
141445
141674
|
var initialData = {
|
|
@@ -141599,10 +141828,10 @@ var bundle$6 = {
|
|
|
141599
141828
|
}
|
|
141600
141829
|
};
|
|
141601
141830
|
|
|
141602
|
-
var plugin$
|
|
141831
|
+
var plugin$9 = {
|
|
141603
141832
|
pluginName: 'Identify GeoJSON',
|
|
141604
141833
|
enabled: true,
|
|
141605
|
-
bundle: bundle$
|
|
141834
|
+
bundle: bundle$7,
|
|
141606
141835
|
components: []
|
|
141607
141836
|
};
|
|
141608
141837
|
|
|
@@ -145373,7 +145602,7 @@ var bufferLayer = getLayer({
|
|
|
145373
145602
|
var identify = {
|
|
145374
145603
|
overlays: []
|
|
145375
145604
|
};
|
|
145376
|
-
var bundle$
|
|
145605
|
+
var bundle$8 = {
|
|
145377
145606
|
name: "identifyUi",
|
|
145378
145607
|
getReducer: function getReducer() {
|
|
145379
145608
|
var initialData = {
|
|
@@ -146245,10 +146474,10 @@ var VectorListener = {
|
|
|
146245
146474
|
}
|
|
146246
146475
|
};
|
|
146247
146476
|
|
|
146248
|
-
var plugin$
|
|
146477
|
+
var plugin$a = {
|
|
146249
146478
|
pluginName: "IdentifyTools",
|
|
146250
146479
|
enabled: true,
|
|
146251
|
-
bundle: [bundle$
|
|
146480
|
+
bundle: [bundle$8, ArcGisListener,
|
|
146252
146481
|
// GeoJsonListener,
|
|
146253
146482
|
// RasterListener,
|
|
146254
146483
|
VectorListener],
|
|
@@ -161815,7 +162044,7 @@ var LegendButton = /*#__PURE__*/function (_React$Component) {
|
|
|
161815
162044
|
|
|
161816
162045
|
//import { Style, Fill, Stroke } from "ol/style";
|
|
161817
162046
|
var req = null;
|
|
161818
|
-
var bundle$
|
|
162047
|
+
var bundle$9 = {
|
|
161819
162048
|
name: "legend",
|
|
161820
162049
|
getReducer: function getReducer() {
|
|
161821
162050
|
var initialData = {
|
|
@@ -161871,7 +162100,6 @@ var bundle$8 = {
|
|
|
161871
162100
|
heights: []
|
|
161872
162101
|
};
|
|
161873
162102
|
var src = url;
|
|
161874
|
-
// debugger
|
|
161875
162103
|
switch (type) {
|
|
161876
162104
|
case "ArcGIS":
|
|
161877
162105
|
src = "".concat(src, "/legend?f=pjson");
|
|
@@ -161880,7 +162108,6 @@ var bundle$8 = {
|
|
|
161880
162108
|
src = "".concat(src, "/legend?bandIds=&renderingRule=&f=pjson");
|
|
161881
162109
|
break;
|
|
161882
162110
|
case "EsriFeatureService":
|
|
161883
|
-
// debugger
|
|
161884
162111
|
if (legendOverride === true) {
|
|
161885
162112
|
src = "".concat(src, "/legend?f=pjson");
|
|
161886
162113
|
} else {
|
|
@@ -161889,9 +162116,7 @@ var bundle$8 = {
|
|
|
161889
162116
|
break;
|
|
161890
162117
|
}
|
|
161891
162118
|
req = xhr.get(src, function (err, response, body) {
|
|
161892
|
-
// debugger
|
|
161893
162119
|
if (err || response.statusCode !== 200) {
|
|
161894
|
-
// debugger
|
|
161895
162120
|
legendLayers[uid] = ["Legend not available!"];
|
|
161896
162121
|
dispatch({
|
|
161897
162122
|
type: "LEGEND_LAYERS_UPDATE_ERROR",
|
|
@@ -161904,13 +162129,11 @@ var bundle$8 = {
|
|
|
161904
162129
|
} else {
|
|
161905
162130
|
try {
|
|
161906
162131
|
var data = JSON.parse(body);
|
|
161907
|
-
// debugger
|
|
161908
162132
|
console.log(data);
|
|
161909
162133
|
if (type === "EsriFeatureService") {
|
|
161910
162134
|
if (legendOverride === true) {
|
|
161911
162135
|
store.doGenerateArcImages(data, lyr);
|
|
161912
162136
|
} else {
|
|
161913
|
-
// debugger
|
|
161914
162137
|
store.doGenerateEsriImages(data, lyr);
|
|
161915
162138
|
}
|
|
161916
162139
|
} else {
|
|
@@ -162033,11 +162256,9 @@ var bundle$8 = {
|
|
|
162033
162256
|
//TODO Logic below is needs to include other Esri styles.
|
|
162034
162257
|
console.log(drawingInfo.renderer);
|
|
162035
162258
|
console.log(drawingInfo.renderer.symbol);
|
|
162036
|
-
// debugger
|
|
162037
162259
|
switch (data.geometryType) {
|
|
162038
162260
|
case "esriGeometryPolygon":
|
|
162039
162261
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSSolid") {
|
|
162040
|
-
// debugger
|
|
162041
162262
|
var img = new Image();
|
|
162042
162263
|
var outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
162043
162264
|
var fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162078,7 +162299,6 @@ var bundle$8 = {
|
|
|
162078
162299
|
}
|
|
162079
162300
|
});
|
|
162080
162301
|
} else if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
162081
|
-
// debugger
|
|
162082
162302
|
var _img = new Image();
|
|
162083
162303
|
var _outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
162084
162304
|
var _fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162274,7 +162494,6 @@ var bundle$8 = {
|
|
|
162274
162494
|
break;
|
|
162275
162495
|
case "esriGeometryPoint":
|
|
162276
162496
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162277
|
-
// debugger
|
|
162278
162497
|
var _img3 = new Image();
|
|
162279
162498
|
_img3.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162280
162499
|
_img3.addEventListener("load", function () {
|
|
@@ -162466,8 +162685,6 @@ var bundle$8 = {
|
|
|
162466
162685
|
img.src = canvas.toDataURL(); //set src using data URI from canvas
|
|
162467
162686
|
img.alt = "Style for ".concat(displayName);
|
|
162468
162687
|
img.crossOrigin = "anonymous";
|
|
162469
|
-
// debugger
|
|
162470
|
-
|
|
162471
162688
|
legendCanvases[uid].canvas.push(canvas);
|
|
162472
162689
|
dispatch({
|
|
162473
162690
|
type: "LEGEND_CANVAS_ADDED",
|
|
@@ -162498,9 +162715,7 @@ var bundle$8 = {
|
|
|
162498
162715
|
}
|
|
162499
162716
|
break;
|
|
162500
162717
|
case "esriGeometryMultipoint":
|
|
162501
|
-
// debugger
|
|
162502
162718
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162503
|
-
// debugger
|
|
162504
162719
|
var _img5 = new Image();
|
|
162505
162720
|
_img5.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162506
162721
|
_img5.addEventListener("load", function () {
|
|
@@ -162755,10 +162970,10 @@ var bundle$8 = {
|
|
|
162755
162970
|
}
|
|
162756
162971
|
};
|
|
162757
162972
|
|
|
162758
|
-
var plugin$
|
|
162973
|
+
var plugin$b = {
|
|
162759
162974
|
pluginName: "Legend",
|
|
162760
162975
|
enabled: true,
|
|
162761
|
-
bundle: bundle$
|
|
162976
|
+
bundle: bundle$9,
|
|
162762
162977
|
components: [{
|
|
162763
162978
|
component: LegendButton,
|
|
162764
162979
|
region: "left-sidebar-top",
|
|
@@ -163151,7 +163366,7 @@ var modifyArea = createInteraction({
|
|
|
163151
163366
|
});
|
|
163152
163367
|
|
|
163153
163368
|
// START BUNDLE
|
|
163154
|
-
var bundle$
|
|
163369
|
+
var bundle$a = {
|
|
163155
163370
|
name: "measure",
|
|
163156
163371
|
getReducer: function getReducer() {
|
|
163157
163372
|
var initialData = {
|
|
@@ -163378,10 +163593,10 @@ var bundle$9 = {
|
|
|
163378
163593
|
}
|
|
163379
163594
|
};
|
|
163380
163595
|
|
|
163381
|
-
var plugin$
|
|
163596
|
+
var plugin$c = {
|
|
163382
163597
|
pluginName: 'MeasureArea',
|
|
163383
163598
|
enabled: true,
|
|
163384
|
-
bundle: bundle$
|
|
163599
|
+
bundle: bundle$a,
|
|
163385
163600
|
components: [{
|
|
163386
163601
|
component: MeasureToolsButton$1,
|
|
163387
163602
|
region: 'basic-toolbar',
|
|
@@ -163389,7 +163604,7 @@ var plugin$b = {
|
|
|
163389
163604
|
}]
|
|
163390
163605
|
};
|
|
163391
163606
|
|
|
163392
|
-
var bundle$
|
|
163607
|
+
var bundle$b = {
|
|
163393
163608
|
name: 'permalink',
|
|
163394
163609
|
getReducer: function getReducer() {
|
|
163395
163610
|
var initialData = {
|
|
@@ -163540,10 +163755,10 @@ var PermalinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
163540
163755
|
}(React$1__default.Component);
|
|
163541
163756
|
var PermalinkButton$1 = connect('doConstructPermalinkParams', 'doModalOpen', PermalinkButton);
|
|
163542
163757
|
|
|
163543
|
-
var plugin$
|
|
163758
|
+
var plugin$d = {
|
|
163544
163759
|
pluginName: 'Permalink',
|
|
163545
163760
|
enabled: true,
|
|
163546
|
-
bundle: bundle$
|
|
163761
|
+
bundle: bundle$b,
|
|
163547
163762
|
components: [{
|
|
163548
163763
|
component: PermalinkButton$1,
|
|
163549
163764
|
region: 'right-sidebar-top',
|
|
@@ -163670,7 +163885,7 @@ function sum$2(array) {
|
|
|
163670
163885
|
|
|
163671
163886
|
var sum_1 = sum$2;
|
|
163672
163887
|
|
|
163673
|
-
var bundle$
|
|
163888
|
+
var bundle$c = {
|
|
163674
163889
|
name: "print",
|
|
163675
163890
|
getReducer: function getReducer() {
|
|
163676
163891
|
var initialData = {
|
|
@@ -163980,10 +164195,10 @@ var Button = function Button(_ref) {
|
|
|
163980
164195
|
};
|
|
163981
164196
|
var Button$1 = connect("doPrintMap", Button);
|
|
163982
164197
|
|
|
163983
|
-
var plugin$
|
|
164198
|
+
var plugin$e = {
|
|
163984
164199
|
pluginName: "Print Map",
|
|
163985
164200
|
enabled: true,
|
|
163986
|
-
bundle: bundle$
|
|
164201
|
+
bundle: bundle$c,
|
|
163987
164202
|
components: [{
|
|
163988
164203
|
component: Button$1,
|
|
163989
164204
|
region: "basic-toolbar",
|
|
@@ -164223,7 +164438,7 @@ var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
|
164223
164438
|
}(React$1__default.Component);
|
|
164224
164439
|
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
164225
164440
|
|
|
164226
|
-
var bundle$
|
|
164441
|
+
var bundle$d = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
164227
164442
|
name: "questionsTab",
|
|
164228
164443
|
getReducer: function getReducer() {
|
|
164229
164444
|
var initialData = {
|
|
@@ -164451,10 +164666,10 @@ var bundle$c = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
164451
164666
|
return state.questionsTab.errorList;
|
|
164452
164667
|
});
|
|
164453
164668
|
|
|
164454
|
-
var plugin$
|
|
164669
|
+
var plugin$f = {
|
|
164455
164670
|
pluginName: "questionsTab",
|
|
164456
164671
|
enabled: true,
|
|
164457
|
-
bundle: bundle$
|
|
164672
|
+
bundle: bundle$d,
|
|
164458
164673
|
components: [{
|
|
164459
164674
|
component: questionsTab$1,
|
|
164460
164675
|
region: "right-sidebar-top",
|
|
@@ -164462,7 +164677,7 @@ var plugin$e = {
|
|
|
164462
164677
|
}]
|
|
164463
164678
|
};
|
|
164464
164679
|
|
|
164465
|
-
var bundle$
|
|
164680
|
+
var bundle$e = {
|
|
164466
164681
|
name: "rasterIdent",
|
|
164467
164682
|
getReducer: function getReducer() {
|
|
164468
164683
|
var initialData = {
|
|
@@ -164548,10 +164763,10 @@ var bundle$d = {
|
|
|
164548
164763
|
}
|
|
164549
164764
|
};
|
|
164550
164765
|
|
|
164551
|
-
var plugin$
|
|
164766
|
+
var plugin$g = {
|
|
164552
164767
|
pluginName: 'Identify Raster',
|
|
164553
164768
|
enabled: true,
|
|
164554
|
-
bundle: bundle$
|
|
164769
|
+
bundle: bundle$e,
|
|
164555
164770
|
components: []
|
|
164556
164771
|
};
|
|
164557
164772
|
|
|
@@ -164590,7 +164805,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164590
164805
|
}(React$1__default.Component);
|
|
164591
164806
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
164592
164807
|
|
|
164593
|
-
var plugin$
|
|
164808
|
+
var plugin$h = {
|
|
164594
164809
|
pluginName: 'NorthButton',
|
|
164595
164810
|
enabled: true,
|
|
164596
164811
|
components: [{
|
|
@@ -164600,7 +164815,7 @@ var plugin$g = {
|
|
|
164600
164815
|
}]
|
|
164601
164816
|
};
|
|
164602
164817
|
|
|
164603
|
-
var bundle$
|
|
164818
|
+
var bundle$f = {
|
|
164604
164819
|
name: 'themeSwitcher',
|
|
164605
164820
|
getReducer: function getReducer() {
|
|
164606
164821
|
var initialData = {
|
|
@@ -164705,7 +164920,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164705
164920
|
}]);
|
|
164706
164921
|
}(React$1__default.Component);
|
|
164707
164922
|
|
|
164708
|
-
var plugin$
|
|
164923
|
+
var plugin$i = {
|
|
164709
164924
|
pluginName: 'Theme Switcher',
|
|
164710
164925
|
enabled: true,
|
|
164711
164926
|
components: [{
|
|
@@ -164713,7 +164928,7 @@ var plugin$h = {
|
|
|
164713
164928
|
region: 'left-sidebar-bottom',
|
|
164714
164929
|
sortOrder: 30
|
|
164715
164930
|
}],
|
|
164716
|
-
bundle: bundle$
|
|
164931
|
+
bundle: bundle$f
|
|
164717
164932
|
};
|
|
164718
164933
|
|
|
164719
164934
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -165690,7 +165905,7 @@ var treeViewDownload = {
|
|
|
165690
165905
|
}
|
|
165691
165906
|
};
|
|
165692
165907
|
|
|
165693
|
-
var plugin$
|
|
165908
|
+
var plugin$j = function plugin(controls) {
|
|
165694
165909
|
return {
|
|
165695
165910
|
pluginName: "LayerTree",
|
|
165696
165911
|
enabled: true,
|
|
@@ -165704,7 +165919,7 @@ var plugin$i = function plugin(controls) {
|
|
|
165704
165919
|
};
|
|
165705
165920
|
|
|
165706
165921
|
var geoJSON$3 = new GeoJSON();
|
|
165707
|
-
var bundle$
|
|
165922
|
+
var bundle$g = {
|
|
165708
165923
|
name: "vectorIdent",
|
|
165709
165924
|
getReducer: function getReducer() {
|
|
165710
165925
|
var initialData = {
|
|
@@ -165836,10 +166051,10 @@ var bundle$f = {
|
|
|
165836
166051
|
}
|
|
165837
166052
|
};
|
|
165838
166053
|
|
|
165839
|
-
var plugin$
|
|
166054
|
+
var plugin$k = {
|
|
165840
166055
|
pluginName: 'Identify Vector',
|
|
165841
166056
|
enabled: true,
|
|
165842
|
-
bundle: bundle$
|
|
166057
|
+
bundle: bundle$g,
|
|
165843
166058
|
components: []
|
|
165844
166059
|
};
|
|
165845
166060
|
|
|
@@ -165893,7 +166108,7 @@ function values$1(object) {
|
|
|
165893
166108
|
|
|
165894
166109
|
var values_1 = values$1;
|
|
165895
166110
|
|
|
165896
|
-
var bundle$
|
|
166111
|
+
var bundle$h = {
|
|
165897
166112
|
name: 'vectorSearch',
|
|
165898
166113
|
getReducer: function getReducer() {
|
|
165899
166114
|
var initialData = {
|
|
@@ -166007,10 +166222,10 @@ var bundle$g = {
|
|
|
166007
166222
|
}
|
|
166008
166223
|
};
|
|
166009
166224
|
|
|
166010
|
-
var plugin$
|
|
166225
|
+
var plugin$l = {
|
|
166011
166226
|
pluginName: 'Vector Search',
|
|
166012
166227
|
enabled: true,
|
|
166013
|
-
bundle: bundle$
|
|
166228
|
+
bundle: bundle$h,
|
|
166014
166229
|
components: []
|
|
166015
166230
|
};
|
|
166016
166231
|
|
|
@@ -166072,7 +166287,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166072
166287
|
}(React$1__default.Component);
|
|
166073
166288
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
166074
166289
|
|
|
166075
|
-
var plugin$
|
|
166290
|
+
var plugin$m = {
|
|
166076
166291
|
pluginName: 'ZoomButtons',
|
|
166077
166292
|
enabled: true,
|
|
166078
166293
|
components: [{
|
|
@@ -166119,7 +166334,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166119
166334
|
}(React$1__default.Component);
|
|
166120
166335
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
166121
166336
|
|
|
166122
|
-
var bundle$
|
|
166337
|
+
var bundle$i = {
|
|
166123
166338
|
name: "zoomLevel",
|
|
166124
166339
|
getReducer: function getReducer() {
|
|
166125
166340
|
var initialData = {
|
|
@@ -166156,10 +166371,10 @@ var bundle$h = {
|
|
|
166156
166371
|
}
|
|
166157
166372
|
};
|
|
166158
166373
|
|
|
166159
|
-
var plugin$
|
|
166374
|
+
var plugin$n = {
|
|
166160
166375
|
pluginName: 'zoomIndicator',
|
|
166161
166376
|
enabled: true,
|
|
166162
|
-
bundle: bundle$
|
|
166377
|
+
bundle: bundle$i,
|
|
166163
166378
|
components: [{
|
|
166164
166379
|
component: zoomIndicator$1,
|
|
166165
166380
|
region: 'right-sidebar-top',
|
|
@@ -166225,7 +166440,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166225
166440
|
}(React$1__default.Component);
|
|
166226
166441
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
166227
166442
|
|
|
166228
|
-
var bundle$
|
|
166443
|
+
var bundle$j = {
|
|
166229
166444
|
name: "zoomHome",
|
|
166230
166445
|
getReducer: function getReducer() {
|
|
166231
166446
|
var initialData = {
|
|
@@ -166293,10 +166508,10 @@ var bundle$i = {
|
|
|
166293
166508
|
}
|
|
166294
166509
|
};
|
|
166295
166510
|
|
|
166296
|
-
var plugin$
|
|
166511
|
+
var plugin$o = {
|
|
166297
166512
|
pluginName: "ZoomToInitial",
|
|
166298
166513
|
enabled: true,
|
|
166299
|
-
bundle: bundle$
|
|
166514
|
+
bundle: bundle$j,
|
|
166300
166515
|
components: [{
|
|
166301
166516
|
component: ZoomHomeButton$1,
|
|
166302
166517
|
region: "left-sidebar-top",
|
|
@@ -166365,7 +166580,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
166365
166580
|
var zoombox = createInteraction({
|
|
166366
166581
|
interaction: 'dragbox'
|
|
166367
166582
|
});
|
|
166368
|
-
var bundle$
|
|
166583
|
+
var bundle$k = {
|
|
166369
166584
|
name: 'zoombox',
|
|
166370
166585
|
getReducer: function getReducer() {
|
|
166371
166586
|
var initialData = {
|
|
@@ -166458,10 +166673,10 @@ var bundle$j = {
|
|
|
166458
166673
|
}
|
|
166459
166674
|
};
|
|
166460
166675
|
|
|
166461
|
-
var plugin$
|
|
166676
|
+
var plugin$p = {
|
|
166462
166677
|
pluginName: 'ZoomtoExtent',
|
|
166463
166678
|
enabled: true,
|
|
166464
|
-
bundle: bundle$
|
|
166679
|
+
bundle: bundle$k,
|
|
166465
166680
|
components: [{
|
|
166466
166681
|
component: ZoomToBoxButton$1,
|
|
166467
166682
|
region: 'basic-toolbar',
|
|
@@ -166504,7 +166719,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166504
166719
|
}(React$1__default.Component);
|
|
166505
166720
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
166506
166721
|
|
|
166507
|
-
var bundle$
|
|
166722
|
+
var bundle$l = {
|
|
166508
166723
|
name: "mapLoading",
|
|
166509
166724
|
getReducer: function getReducer() {
|
|
166510
166725
|
var initialData = {
|
|
@@ -166537,10 +166752,10 @@ var bundle$k = {
|
|
|
166537
166752
|
}
|
|
166538
166753
|
};
|
|
166539
166754
|
|
|
166540
|
-
var plugin$
|
|
166755
|
+
var plugin$q = {
|
|
166541
166756
|
pluginName: "MapLoadingIndicator",
|
|
166542
166757
|
enabled: true,
|
|
166543
|
-
bundle: bundle$
|
|
166758
|
+
bundle: bundle$l,
|
|
166544
166759
|
components: [{
|
|
166545
166760
|
component: MapLoadingIndicator$1,
|
|
166546
166761
|
region: "lower-right-toolbar",
|
|
@@ -166570,26 +166785,27 @@ exports.arcgisIdent = plugin$1;
|
|
|
166570
166785
|
exports.basemapSwitcher = plugin$2;
|
|
166571
166786
|
exports.bookmarks = plugin$3;
|
|
166572
166787
|
exports.changeLog = plugin$4;
|
|
166573
|
-
exports.coordDisplay = plugin$
|
|
166574
|
-
exports.draw = plugin$
|
|
166788
|
+
exports.coordDisplay = plugin$6;
|
|
166789
|
+
exports.draw = plugin$7;
|
|
166575
166790
|
exports.esriIdent = plugin$1;
|
|
166576
|
-
exports.geocoder = plugin$
|
|
166577
|
-
exports.geojsonIdent = plugin$
|
|
166578
|
-
exports.identify = plugin$
|
|
166579
|
-
exports.legend = plugin$
|
|
166580
|
-
exports.mapLoadingIndicator = plugin$
|
|
166581
|
-
exports.measureTools = plugin$
|
|
166582
|
-
exports.permalink = plugin$
|
|
166583
|
-
exports.printMap = plugin$
|
|
166584
|
-
exports.questionsTab = plugin$
|
|
166585
|
-
exports.rasterIdent = plugin$
|
|
166586
|
-
exports.
|
|
166587
|
-
exports.
|
|
166588
|
-
exports.
|
|
166791
|
+
exports.geocoder = plugin$8;
|
|
166792
|
+
exports.geojsonIdent = plugin$9;
|
|
166793
|
+
exports.identify = plugin$a;
|
|
166794
|
+
exports.legend = plugin$b;
|
|
166795
|
+
exports.mapLoadingIndicator = plugin$q;
|
|
166796
|
+
exports.measureTools = plugin$c;
|
|
166797
|
+
exports.permalink = plugin$d;
|
|
166798
|
+
exports.printMap = plugin$e;
|
|
166799
|
+
exports.questionsTab = plugin$f;
|
|
166800
|
+
exports.rasterIdent = plugin$g;
|
|
166801
|
+
exports.resources = plugin$5;
|
|
166802
|
+
exports.rotateNorth = plugin$h;
|
|
166803
|
+
exports.themeSwitcher = plugin$i;
|
|
166804
|
+
exports.treeView = plugin$j;
|
|
166589
166805
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
166590
|
-
exports.vectorIdent = plugin$
|
|
166591
|
-
exports.vectorSearch = plugin$
|
|
166592
|
-
exports.zoomHome = plugin$
|
|
166593
|
-
exports.zoomInOut = plugin$
|
|
166594
|
-
exports.zoomLevel = plugin$
|
|
166595
|
-
exports.zoomToBox = plugin$
|
|
166806
|
+
exports.vectorIdent = plugin$k;
|
|
166807
|
+
exports.vectorSearch = plugin$l;
|
|
166808
|
+
exports.zoomHome = plugin$o;
|
|
166809
|
+
exports.zoomInOut = plugin$m;
|
|
166810
|
+
exports.zoomLevel = plugin$n;
|
|
166811
|
+
exports.zoomToBox = plugin$p;
|