@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/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.42";
|
|
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;
|
|
@@ -136862,7 +136862,7 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
|
|
|
136862
136862
|
var ChangeLogModal$1 = connect("selectTheme", "selectChangeLogItems", "doModalClose", "doSubmitNotification", "doGetChangeLogData", "doSearchChangeLogData", ChangeLogModal);
|
|
136863
136863
|
|
|
136864
136864
|
var url$1 = "".concat(process.env.REACT_APP_FUDS_CHANGE_LOG_URL);
|
|
136865
|
-
var testData = [{
|
|
136865
|
+
var testData$1 = [{
|
|
136866
136866
|
"id": 4713,
|
|
136867
136867
|
"environment": "Public and Internal GIS",
|
|
136868
136868
|
"district_code": "MVN",
|
|
@@ -136891,7 +136891,7 @@ var bundle$3 = {
|
|
|
136891
136891
|
name: 'changeLog',
|
|
136892
136892
|
getReducer: function getReducer() {
|
|
136893
136893
|
var initialData = {
|
|
136894
|
-
items: testData,
|
|
136894
|
+
items: testData$1,
|
|
136895
136895
|
renderModal: false
|
|
136896
136896
|
};
|
|
136897
136897
|
return function () {
|
|
@@ -136957,7 +136957,7 @@ var bundle$3 = {
|
|
|
136957
136957
|
dispatch({
|
|
136958
136958
|
type: "CHANGE_LOG_LOAD_TEST_DATA",
|
|
136959
136959
|
payload: {
|
|
136960
|
-
items: testData,
|
|
136960
|
+
items: testData$1,
|
|
136961
136961
|
renderModal: true
|
|
136962
136962
|
}
|
|
136963
136963
|
});
|
|
@@ -137064,6 +137064,229 @@ var plugin$4 = {
|
|
|
137064
137064
|
}]
|
|
137065
137065
|
};
|
|
137066
137066
|
|
|
137067
|
+
var ResourcesModal = /*#__PURE__*/function (_React$Component) {
|
|
137068
|
+
function ResourcesModal(props) {
|
|
137069
|
+
var _this;
|
|
137070
|
+
_classCallCheck(this, ResourcesModal);
|
|
137071
|
+
_this = _callSuper(this, ResourcesModal, [props]);
|
|
137072
|
+
_this.state = {};
|
|
137073
|
+
_this.close = _this.close.bind(_this);
|
|
137074
|
+
return _this;
|
|
137075
|
+
}
|
|
137076
|
+
_inherits(ResourcesModal, _React$Component);
|
|
137077
|
+
return _createClass(ResourcesModal, [{
|
|
137078
|
+
key: "close",
|
|
137079
|
+
value: function close() {
|
|
137080
|
+
var doModalClose = this.props.doModalClose;
|
|
137081
|
+
doModalClose();
|
|
137082
|
+
}
|
|
137083
|
+
}, {
|
|
137084
|
+
key: "render",
|
|
137085
|
+
value: function render() {
|
|
137086
|
+
var _this$props = this.props,
|
|
137087
|
+
theme = _this$props.theme,
|
|
137088
|
+
doGetResourceData = _this$props.doGetResourceData,
|
|
137089
|
+
resourceItems = _this$props.resourceItems;
|
|
137090
|
+
var arrayDataItems = resourceItems.map(function (data) {
|
|
137091
|
+
return /*#__PURE__*/React$1__default.createElement("li", {
|
|
137092
|
+
style: Object.keys(data).length > 0 ? {
|
|
137093
|
+
listStyleType: "disc"
|
|
137094
|
+
} : {
|
|
137095
|
+
listStyleType: "none"
|
|
137096
|
+
}
|
|
137097
|
+
}, data.resource ? /*#__PURE__*/React$1__default.createElement("li", {
|
|
137098
|
+
style: {
|
|
137099
|
+
listStyleType: "none"
|
|
137100
|
+
}
|
|
137101
|
+
}, /*#__PURE__*/React$1__default.createElement("span", null, /*#__PURE__*/React$1__default.createElement("a", {
|
|
137102
|
+
href: data.url,
|
|
137103
|
+
target: "_blank",
|
|
137104
|
+
rel: "noreferrer nofollow noopener"
|
|
137105
|
+
}, data.resource))) : null, /*#__PURE__*/React$1__default.createElement("br", null));
|
|
137106
|
+
});
|
|
137107
|
+
return /*#__PURE__*/React$1__default.createElement("div", null, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137108
|
+
className: "cm-modal-header " + theme
|
|
137109
|
+
}, "Resources"), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137110
|
+
className: "cm-modal-body",
|
|
137111
|
+
style: {
|
|
137112
|
+
height: 290,
|
|
137113
|
+
top: 0,
|
|
137114
|
+
bottom: 0,
|
|
137115
|
+
left: 0,
|
|
137116
|
+
right: 0
|
|
137117
|
+
}
|
|
137118
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137119
|
+
className: "cm-form-group"
|
|
137120
|
+
}, /*#__PURE__*/React$1__default.createElement("div", {
|
|
137121
|
+
style: {
|
|
137122
|
+
overflow: "auto scroll",
|
|
137123
|
+
width: "875px",
|
|
137124
|
+
height: "300px",
|
|
137125
|
+
whiteSpace: "pre-wrap"
|
|
137126
|
+
}
|
|
137127
|
+
}, /*#__PURE__*/React$1__default.createElement("ul", null, arrayDataItems)))), /*#__PURE__*/React$1__default.createElement("div", {
|
|
137128
|
+
className: "cm-modal-footer"
|
|
137129
|
+
}, /*#__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", {
|
|
137130
|
+
style: {
|
|
137131
|
+
textAlign: "left"
|
|
137132
|
+
},
|
|
137133
|
+
type: "Close",
|
|
137134
|
+
className: "cm-btn cm-btn-theme " + theme,
|
|
137135
|
+
onClick: this.close
|
|
137136
|
+
}, "Close")));
|
|
137137
|
+
}
|
|
137138
|
+
}]);
|
|
137139
|
+
}(React$1__default.Component);
|
|
137140
|
+
var ResourcesModal$1 = connect("selectTheme", "selectResourceItems", "doModalClose", "doGetResourceData", ResourcesModal);
|
|
137141
|
+
|
|
137142
|
+
var url$2 = "".concat(process.env.REACT_APP_FUDS_RESOURCES_URL);
|
|
137143
|
+
var defaultHtml = [{
|
|
137144
|
+
"resource": "FUDSMIS Portal",
|
|
137145
|
+
"url": "https://fudsportal.usace.army.mil/"
|
|
137146
|
+
}, {
|
|
137147
|
+
"resource": "IPaC Information for Planning and Consultation",
|
|
137148
|
+
"url": "https://ipac.ecosphere.fws.gov/"
|
|
137149
|
+
}];
|
|
137150
|
+
var bundle$4 = {
|
|
137151
|
+
name: 'resources',
|
|
137152
|
+
getReducer: function getReducer() {
|
|
137153
|
+
var initialData = {
|
|
137154
|
+
items: defaultHtml,
|
|
137155
|
+
renderModal: false
|
|
137156
|
+
};
|
|
137157
|
+
return function () {
|
|
137158
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
137159
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
137160
|
+
type = _ref.type,
|
|
137161
|
+
payload = _ref.payload;
|
|
137162
|
+
switch (type) {
|
|
137163
|
+
case "RESOURCES_LOAD_TEST_DATA":
|
|
137164
|
+
case "RESOURCES_LOAD_PRODUCTION_DATA":
|
|
137165
|
+
case "RESOURCES_MODAL_WINDOW_OPENED":
|
|
137166
|
+
return Object.assign({}, state, payload);
|
|
137167
|
+
default:
|
|
137168
|
+
return state;
|
|
137169
|
+
}
|
|
137170
|
+
};
|
|
137171
|
+
},
|
|
137172
|
+
doGetResourceData: function doGetResourceData() {
|
|
137173
|
+
return function (_ref2) {
|
|
137174
|
+
var dispatch = _ref2.dispatch,
|
|
137175
|
+
store = _ref2.store,
|
|
137176
|
+
anonGet = _ref2.anonGet;
|
|
137177
|
+
anonGet(url$2, function (err, response, body) {
|
|
137178
|
+
if (err || response.statusCode !== 200) {
|
|
137179
|
+
// On Error Load Test Data
|
|
137180
|
+
dispatch({
|
|
137181
|
+
type: "RESOURCES_LOAD_TEST_DATA",
|
|
137182
|
+
payload: {
|
|
137183
|
+
items: testData,
|
|
137184
|
+
renderModal: true
|
|
137185
|
+
}
|
|
137186
|
+
});
|
|
137187
|
+
} else {
|
|
137188
|
+
try {
|
|
137189
|
+
console.log("Production Resource Data");
|
|
137190
|
+
console.log(body);
|
|
137191
|
+
var data = JSON.parse(body);
|
|
137192
|
+
console.log('data');
|
|
137193
|
+
console.log(data);
|
|
137194
|
+
var items = data.items;
|
|
137195
|
+
console.log("ITEMS");
|
|
137196
|
+
console.log(items);
|
|
137197
|
+
dispatch({
|
|
137198
|
+
type: "RESOURCES_LOAD_PRODUCTION_DATA",
|
|
137199
|
+
payload: {
|
|
137200
|
+
items: items,
|
|
137201
|
+
renderModal: true
|
|
137202
|
+
}
|
|
137203
|
+
});
|
|
137204
|
+
} catch (err) {
|
|
137205
|
+
// alert(" ! ! ! ERROR IN CATCH BLOCK ! ! ! ")
|
|
137206
|
+
}
|
|
137207
|
+
}
|
|
137208
|
+
});
|
|
137209
|
+
};
|
|
137210
|
+
},
|
|
137211
|
+
doOpenModalResources: function doOpenModalResources() {
|
|
137212
|
+
return function (_ref3) {
|
|
137213
|
+
var dispatch = _ref3.dispatch,
|
|
137214
|
+
store = _ref3.store;
|
|
137215
|
+
store.doModalOpen({
|
|
137216
|
+
children: [ResourcesModal$1],
|
|
137217
|
+
options: {},
|
|
137218
|
+
openedBy: 'ResourcesButton'
|
|
137219
|
+
});
|
|
137220
|
+
dispatch({
|
|
137221
|
+
type: "RESOURCES_MODAL_WINDOW_OPENED",
|
|
137222
|
+
payload: {
|
|
137223
|
+
renderModal: false
|
|
137224
|
+
}
|
|
137225
|
+
});
|
|
137226
|
+
};
|
|
137227
|
+
},
|
|
137228
|
+
selectResourceItems: function selectResourceItems(state) {
|
|
137229
|
+
return state.resources.items;
|
|
137230
|
+
},
|
|
137231
|
+
reactRenderResourceModal: function reactRenderResourceModal(state) {
|
|
137232
|
+
if (state.resources.renderModal) return {
|
|
137233
|
+
actionCreator: "doOpenModalResources"
|
|
137234
|
+
};
|
|
137235
|
+
}
|
|
137236
|
+
};
|
|
137237
|
+
|
|
137238
|
+
var ResourcesButton = /*#__PURE__*/function (_React$Component) {
|
|
137239
|
+
function ResourcesButton(props) {
|
|
137240
|
+
var _this;
|
|
137241
|
+
_classCallCheck(this, ResourcesButton);
|
|
137242
|
+
_this = _callSuper(this, ResourcesButton, [props]);
|
|
137243
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
137244
|
+
_this.openModalResources = _this.openModalResources.bind(_this);
|
|
137245
|
+
return _this;
|
|
137246
|
+
}
|
|
137247
|
+
_inherits(ResourcesButton, _React$Component);
|
|
137248
|
+
return _createClass(ResourcesButton, [{
|
|
137249
|
+
key: "openModalResources",
|
|
137250
|
+
value: function openModalResources() {
|
|
137251
|
+
var doModalOpen = this.props.doModalOpen;
|
|
137252
|
+
doModalOpen({
|
|
137253
|
+
children: [ResourcesModal$1],
|
|
137254
|
+
options: {},
|
|
137255
|
+
openedBy: 'ResourcesButton'
|
|
137256
|
+
});
|
|
137257
|
+
}
|
|
137258
|
+
}, {
|
|
137259
|
+
key: "handleClick",
|
|
137260
|
+
value: function handleClick() {
|
|
137261
|
+
var doGetResourceData = this.props.doGetResourceData;
|
|
137262
|
+
this.openModalResources();
|
|
137263
|
+
doGetResourceData();
|
|
137264
|
+
}
|
|
137265
|
+
}, {
|
|
137266
|
+
key: "render",
|
|
137267
|
+
value: function render() {
|
|
137268
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
137269
|
+
iconClass: "mdi mdi-library",
|
|
137270
|
+
label: "Resources",
|
|
137271
|
+
title: "Resources",
|
|
137272
|
+
onClick: this.handleClick
|
|
137273
|
+
});
|
|
137274
|
+
}
|
|
137275
|
+
}]);
|
|
137276
|
+
}(React$1__default.Component);
|
|
137277
|
+
var resourcesButton = connect("doModalOpen", "doGetResourceData", ResourcesButton);
|
|
137278
|
+
|
|
137279
|
+
var plugin$5 = {
|
|
137280
|
+
pluginName: 'resources',
|
|
137281
|
+
enabled: true,
|
|
137282
|
+
bundle: bundle$4,
|
|
137283
|
+
components: [{
|
|
137284
|
+
component: resourcesButton,
|
|
137285
|
+
region: 'right-sidebar-top',
|
|
137286
|
+
sortOrder: 130
|
|
137287
|
+
}]
|
|
137288
|
+
};
|
|
137289
|
+
|
|
137067
137290
|
var CoordinateLatLonInput = function CoordinateLatLonInput(props) {
|
|
137068
137291
|
var label = props.label,
|
|
137069
137292
|
placeholder = props.placeholder,
|
|
@@ -137511,7 +137734,7 @@ function throttle(func, wait, options) {
|
|
|
137511
137734
|
|
|
137512
137735
|
var throttle_1 = throttle;
|
|
137513
137736
|
|
|
137514
|
-
var bundle$
|
|
137737
|
+
var bundle$5 = {
|
|
137515
137738
|
name: "coordinateDisplay",
|
|
137516
137739
|
getReducer: function getReducer() {
|
|
137517
137740
|
var initialData = {
|
|
@@ -137791,10 +138014,10 @@ var bundle$4 = {
|
|
|
137791
138014
|
}
|
|
137792
138015
|
};
|
|
137793
138016
|
|
|
137794
|
-
var plugin$
|
|
138017
|
+
var plugin$6 = {
|
|
137795
138018
|
pluginName: 'PositionText',
|
|
137796
138019
|
enabled: true,
|
|
137797
|
-
bundle: bundle$
|
|
138020
|
+
bundle: bundle$5,
|
|
137798
138021
|
components: [{
|
|
137799
138022
|
component: CoordinateDisplay$1,
|
|
137800
138023
|
region: 'lower-right-toolbar',
|
|
@@ -138800,7 +139023,7 @@ var drawSaveBundle = {
|
|
|
138800
139023
|
persistActions: ['DRAW_SAVE_COMPLETE']
|
|
138801
139024
|
};
|
|
138802
139025
|
|
|
138803
|
-
var plugin$
|
|
139026
|
+
var plugin$7 = {
|
|
138804
139027
|
pluginName: 'Draw Tools',
|
|
138805
139028
|
enabled: true,
|
|
138806
139029
|
bundle: [createDrawBundle({
|
|
@@ -138977,7 +139200,7 @@ var zoomScales = {
|
|
|
138977
139200
|
poi: 19,
|
|
138978
139201
|
"poi.landmark": 19
|
|
138979
139202
|
};
|
|
138980
|
-
var bundle$
|
|
139203
|
+
var bundle$6 = {
|
|
138981
139204
|
name: "geocoder",
|
|
138982
139205
|
getReducer: function getReducer() {
|
|
138983
139206
|
var initialData = {
|
|
@@ -139134,10 +139357,10 @@ var bundle$5 = {
|
|
|
139134
139357
|
}
|
|
139135
139358
|
};
|
|
139136
139359
|
|
|
139137
|
-
var plugin$
|
|
139360
|
+
var plugin$8 = {
|
|
139138
139361
|
pluginName: 'Geocoder',
|
|
139139
139362
|
enabled: true,
|
|
139140
|
-
bundle: bundle$
|
|
139363
|
+
bundle: bundle$6,
|
|
139141
139364
|
components: [{
|
|
139142
139365
|
component: SearchBar$1,
|
|
139143
139366
|
region: 'basic-toolbar',
|
|
@@ -141439,7 +141662,7 @@ function compareCoords(pair1, pair2) {
|
|
|
141439
141662
|
return pair1[0] === pair2[0] && pair1[1] === pair2[1];
|
|
141440
141663
|
}
|
|
141441
141664
|
|
|
141442
|
-
var bundle$
|
|
141665
|
+
var bundle$7 = {
|
|
141443
141666
|
name: 'geojsonIdent',
|
|
141444
141667
|
getReducer: function getReducer() {
|
|
141445
141668
|
var initialData = {
|
|
@@ -141599,10 +141822,10 @@ var bundle$6 = {
|
|
|
141599
141822
|
}
|
|
141600
141823
|
};
|
|
141601
141824
|
|
|
141602
|
-
var plugin$
|
|
141825
|
+
var plugin$9 = {
|
|
141603
141826
|
pluginName: 'Identify GeoJSON',
|
|
141604
141827
|
enabled: true,
|
|
141605
|
-
bundle: bundle$
|
|
141828
|
+
bundle: bundle$7,
|
|
141606
141829
|
components: []
|
|
141607
141830
|
};
|
|
141608
141831
|
|
|
@@ -145373,7 +145596,7 @@ var bufferLayer = getLayer({
|
|
|
145373
145596
|
var identify = {
|
|
145374
145597
|
overlays: []
|
|
145375
145598
|
};
|
|
145376
|
-
var bundle$
|
|
145599
|
+
var bundle$8 = {
|
|
145377
145600
|
name: "identifyUi",
|
|
145378
145601
|
getReducer: function getReducer() {
|
|
145379
145602
|
var initialData = {
|
|
@@ -146245,10 +146468,10 @@ var VectorListener = {
|
|
|
146245
146468
|
}
|
|
146246
146469
|
};
|
|
146247
146470
|
|
|
146248
|
-
var plugin$
|
|
146471
|
+
var plugin$a = {
|
|
146249
146472
|
pluginName: "IdentifyTools",
|
|
146250
146473
|
enabled: true,
|
|
146251
|
-
bundle: [bundle$
|
|
146474
|
+
bundle: [bundle$8, ArcGisListener,
|
|
146252
146475
|
// GeoJsonListener,
|
|
146253
146476
|
// RasterListener,
|
|
146254
146477
|
VectorListener],
|
|
@@ -161815,7 +162038,7 @@ var LegendButton = /*#__PURE__*/function (_React$Component) {
|
|
|
161815
162038
|
|
|
161816
162039
|
//import { Style, Fill, Stroke } from "ol/style";
|
|
161817
162040
|
var req = null;
|
|
161818
|
-
var bundle$
|
|
162041
|
+
var bundle$9 = {
|
|
161819
162042
|
name: "legend",
|
|
161820
162043
|
getReducer: function getReducer() {
|
|
161821
162044
|
var initialData = {
|
|
@@ -161871,7 +162094,6 @@ var bundle$8 = {
|
|
|
161871
162094
|
heights: []
|
|
161872
162095
|
};
|
|
161873
162096
|
var src = url;
|
|
161874
|
-
// debugger
|
|
161875
162097
|
switch (type) {
|
|
161876
162098
|
case "ArcGIS":
|
|
161877
162099
|
src = "".concat(src, "/legend?f=pjson");
|
|
@@ -161880,7 +162102,6 @@ var bundle$8 = {
|
|
|
161880
162102
|
src = "".concat(src, "/legend?bandIds=&renderingRule=&f=pjson");
|
|
161881
162103
|
break;
|
|
161882
162104
|
case "EsriFeatureService":
|
|
161883
|
-
// debugger
|
|
161884
162105
|
if (legendOverride === true) {
|
|
161885
162106
|
src = "".concat(src, "/legend?f=pjson");
|
|
161886
162107
|
} else {
|
|
@@ -161889,9 +162110,7 @@ var bundle$8 = {
|
|
|
161889
162110
|
break;
|
|
161890
162111
|
}
|
|
161891
162112
|
req = xhr.get(src, function (err, response, body) {
|
|
161892
|
-
// debugger
|
|
161893
162113
|
if (err || response.statusCode !== 200) {
|
|
161894
|
-
// debugger
|
|
161895
162114
|
legendLayers[uid] = ["Legend not available!"];
|
|
161896
162115
|
dispatch({
|
|
161897
162116
|
type: "LEGEND_LAYERS_UPDATE_ERROR",
|
|
@@ -161904,13 +162123,11 @@ var bundle$8 = {
|
|
|
161904
162123
|
} else {
|
|
161905
162124
|
try {
|
|
161906
162125
|
var data = JSON.parse(body);
|
|
161907
|
-
// debugger
|
|
161908
162126
|
console.log(data);
|
|
161909
162127
|
if (type === "EsriFeatureService") {
|
|
161910
162128
|
if (legendOverride === true) {
|
|
161911
162129
|
store.doGenerateArcImages(data, lyr);
|
|
161912
162130
|
} else {
|
|
161913
|
-
// debugger
|
|
161914
162131
|
store.doGenerateEsriImages(data, lyr);
|
|
161915
162132
|
}
|
|
161916
162133
|
} else {
|
|
@@ -162033,11 +162250,9 @@ var bundle$8 = {
|
|
|
162033
162250
|
//TODO Logic below is needs to include other Esri styles.
|
|
162034
162251
|
console.log(drawingInfo.renderer);
|
|
162035
162252
|
console.log(drawingInfo.renderer.symbol);
|
|
162036
|
-
// debugger
|
|
162037
162253
|
switch (data.geometryType) {
|
|
162038
162254
|
case "esriGeometryPolygon":
|
|
162039
162255
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSSolid") {
|
|
162040
|
-
// debugger
|
|
162041
162256
|
var img = new Image();
|
|
162042
162257
|
var outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
162043
162258
|
var fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162078,7 +162293,6 @@ var bundle$8 = {
|
|
|
162078
162293
|
}
|
|
162079
162294
|
});
|
|
162080
162295
|
} else if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriSFS" && drawingInfo.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
162081
|
-
// debugger
|
|
162082
162296
|
var _img = new Image();
|
|
162083
162297
|
var _outlineColor = drawingInfo.renderer.symbol.outline.color;
|
|
162084
162298
|
var _fillColor = drawingInfo.renderer.symbol.color;
|
|
@@ -162274,7 +162488,6 @@ var bundle$8 = {
|
|
|
162274
162488
|
break;
|
|
162275
162489
|
case "esriGeometryPoint":
|
|
162276
162490
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162277
|
-
// debugger
|
|
162278
162491
|
var _img3 = new Image();
|
|
162279
162492
|
_img3.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162280
162493
|
_img3.addEventListener("load", function () {
|
|
@@ -162466,8 +162679,6 @@ var bundle$8 = {
|
|
|
162466
162679
|
img.src = canvas.toDataURL(); //set src using data URI from canvas
|
|
162467
162680
|
img.alt = "Style for ".concat(displayName);
|
|
162468
162681
|
img.crossOrigin = "anonymous";
|
|
162469
|
-
// debugger
|
|
162470
|
-
|
|
162471
162682
|
legendCanvases[uid].canvas.push(canvas);
|
|
162472
162683
|
dispatch({
|
|
162473
162684
|
type: "LEGEND_CANVAS_ADDED",
|
|
@@ -162498,9 +162709,7 @@ var bundle$8 = {
|
|
|
162498
162709
|
}
|
|
162499
162710
|
break;
|
|
162500
162711
|
case "esriGeometryMultipoint":
|
|
162501
|
-
// debugger
|
|
162502
162712
|
if (drawingInfo.renderer.symbol && drawingInfo.renderer.symbol.type === "esriPMS") {
|
|
162503
|
-
// debugger
|
|
162504
162713
|
var _img5 = new Image();
|
|
162505
162714
|
_img5.src = "data:image/png;base64,".concat(data.drawingInfo.renderer.symbol.imageData);
|
|
162506
162715
|
_img5.addEventListener("load", function () {
|
|
@@ -162755,10 +162964,10 @@ var bundle$8 = {
|
|
|
162755
162964
|
}
|
|
162756
162965
|
};
|
|
162757
162966
|
|
|
162758
|
-
var plugin$
|
|
162967
|
+
var plugin$b = {
|
|
162759
162968
|
pluginName: "Legend",
|
|
162760
162969
|
enabled: true,
|
|
162761
|
-
bundle: bundle$
|
|
162970
|
+
bundle: bundle$9,
|
|
162762
162971
|
components: [{
|
|
162763
162972
|
component: LegendButton,
|
|
162764
162973
|
region: "left-sidebar-top",
|
|
@@ -163151,7 +163360,7 @@ var modifyArea = createInteraction({
|
|
|
163151
163360
|
});
|
|
163152
163361
|
|
|
163153
163362
|
// START BUNDLE
|
|
163154
|
-
var bundle$
|
|
163363
|
+
var bundle$a = {
|
|
163155
163364
|
name: "measure",
|
|
163156
163365
|
getReducer: function getReducer() {
|
|
163157
163366
|
var initialData = {
|
|
@@ -163378,10 +163587,10 @@ var bundle$9 = {
|
|
|
163378
163587
|
}
|
|
163379
163588
|
};
|
|
163380
163589
|
|
|
163381
|
-
var plugin$
|
|
163590
|
+
var plugin$c = {
|
|
163382
163591
|
pluginName: 'MeasureArea',
|
|
163383
163592
|
enabled: true,
|
|
163384
|
-
bundle: bundle$
|
|
163593
|
+
bundle: bundle$a,
|
|
163385
163594
|
components: [{
|
|
163386
163595
|
component: MeasureToolsButton$1,
|
|
163387
163596
|
region: 'basic-toolbar',
|
|
@@ -163389,7 +163598,7 @@ var plugin$b = {
|
|
|
163389
163598
|
}]
|
|
163390
163599
|
};
|
|
163391
163600
|
|
|
163392
|
-
var bundle$
|
|
163601
|
+
var bundle$b = {
|
|
163393
163602
|
name: 'permalink',
|
|
163394
163603
|
getReducer: function getReducer() {
|
|
163395
163604
|
var initialData = {
|
|
@@ -163540,10 +163749,10 @@ var PermalinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
163540
163749
|
}(React$1__default.Component);
|
|
163541
163750
|
var PermalinkButton$1 = connect('doConstructPermalinkParams', 'doModalOpen', PermalinkButton);
|
|
163542
163751
|
|
|
163543
|
-
var plugin$
|
|
163752
|
+
var plugin$d = {
|
|
163544
163753
|
pluginName: 'Permalink',
|
|
163545
163754
|
enabled: true,
|
|
163546
|
-
bundle: bundle$
|
|
163755
|
+
bundle: bundle$b,
|
|
163547
163756
|
components: [{
|
|
163548
163757
|
component: PermalinkButton$1,
|
|
163549
163758
|
region: 'right-sidebar-top',
|
|
@@ -163670,7 +163879,7 @@ function sum$2(array) {
|
|
|
163670
163879
|
|
|
163671
163880
|
var sum_1 = sum$2;
|
|
163672
163881
|
|
|
163673
|
-
var bundle$
|
|
163882
|
+
var bundle$c = {
|
|
163674
163883
|
name: "print",
|
|
163675
163884
|
getReducer: function getReducer() {
|
|
163676
163885
|
var initialData = {
|
|
@@ -163980,10 +164189,10 @@ var Button = function Button(_ref) {
|
|
|
163980
164189
|
};
|
|
163981
164190
|
var Button$1 = connect("doPrintMap", Button);
|
|
163982
164191
|
|
|
163983
|
-
var plugin$
|
|
164192
|
+
var plugin$e = {
|
|
163984
164193
|
pluginName: "Print Map",
|
|
163985
164194
|
enabled: true,
|
|
163986
|
-
bundle: bundle$
|
|
164195
|
+
bundle: bundle$c,
|
|
163987
164196
|
components: [{
|
|
163988
164197
|
component: Button$1,
|
|
163989
164198
|
region: "basic-toolbar",
|
|
@@ -164223,7 +164432,7 @@ var questionsTab = /*#__PURE__*/function (_React$Component) {
|
|
|
164223
164432
|
}(React$1__default.Component);
|
|
164224
164433
|
var questionsTab$1 = connect("doModalOpen", "doQuestionBarActivate", "selectQuestionsTabStatus", questionsTab);
|
|
164225
164434
|
|
|
164226
|
-
var bundle$
|
|
164435
|
+
var bundle$d = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
164227
164436
|
name: "questionsTab",
|
|
164228
164437
|
getReducer: function getReducer() {
|
|
164229
164438
|
var initialData = {
|
|
@@ -164451,10 +164660,10 @@ var bundle$c = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
164451
164660
|
return state.questionsTab.errorList;
|
|
164452
164661
|
});
|
|
164453
164662
|
|
|
164454
|
-
var plugin$
|
|
164663
|
+
var plugin$f = {
|
|
164455
164664
|
pluginName: "questionsTab",
|
|
164456
164665
|
enabled: true,
|
|
164457
|
-
bundle: bundle$
|
|
164666
|
+
bundle: bundle$d,
|
|
164458
164667
|
components: [{
|
|
164459
164668
|
component: questionsTab$1,
|
|
164460
164669
|
region: "right-sidebar-top",
|
|
@@ -164462,7 +164671,7 @@ var plugin$e = {
|
|
|
164462
164671
|
}]
|
|
164463
164672
|
};
|
|
164464
164673
|
|
|
164465
|
-
var bundle$
|
|
164674
|
+
var bundle$e = {
|
|
164466
164675
|
name: "rasterIdent",
|
|
164467
164676
|
getReducer: function getReducer() {
|
|
164468
164677
|
var initialData = {
|
|
@@ -164548,10 +164757,10 @@ var bundle$d = {
|
|
|
164548
164757
|
}
|
|
164549
164758
|
};
|
|
164550
164759
|
|
|
164551
|
-
var plugin$
|
|
164760
|
+
var plugin$g = {
|
|
164552
164761
|
pluginName: 'Identify Raster',
|
|
164553
164762
|
enabled: true,
|
|
164554
|
-
bundle: bundle$
|
|
164763
|
+
bundle: bundle$e,
|
|
164555
164764
|
components: []
|
|
164556
164765
|
};
|
|
164557
164766
|
|
|
@@ -164590,7 +164799,7 @@ var RotateNorthButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164590
164799
|
}(React$1__default.Component);
|
|
164591
164800
|
var RotateNorthButton$1 = connect("doSetRotationNorth", "selectMapRotation", RotateNorthButton);
|
|
164592
164801
|
|
|
164593
|
-
var plugin$
|
|
164802
|
+
var plugin$h = {
|
|
164594
164803
|
pluginName: 'NorthButton',
|
|
164595
164804
|
enabled: true,
|
|
164596
164805
|
components: [{
|
|
@@ -164600,7 +164809,7 @@ var plugin$g = {
|
|
|
164600
164809
|
}]
|
|
164601
164810
|
};
|
|
164602
164811
|
|
|
164603
|
-
var bundle$
|
|
164812
|
+
var bundle$f = {
|
|
164604
164813
|
name: 'themeSwitcher',
|
|
164605
164814
|
getReducer: function getReducer() {
|
|
164606
164815
|
var initialData = {
|
|
@@ -164705,7 +164914,7 @@ var ThemeSwitcherButton = /*#__PURE__*/function (_React$Component) {
|
|
|
164705
164914
|
}]);
|
|
164706
164915
|
}(React$1__default.Component);
|
|
164707
164916
|
|
|
164708
|
-
var plugin$
|
|
164917
|
+
var plugin$i = {
|
|
164709
164918
|
pluginName: 'Theme Switcher',
|
|
164710
164919
|
enabled: true,
|
|
164711
164920
|
components: [{
|
|
@@ -164713,7 +164922,7 @@ var plugin$h = {
|
|
|
164713
164922
|
region: 'left-sidebar-bottom',
|
|
164714
164923
|
sortOrder: 30
|
|
164715
164924
|
}],
|
|
164716
|
-
bundle: bundle$
|
|
164925
|
+
bundle: bundle$f
|
|
164717
164926
|
};
|
|
164718
164927
|
|
|
164719
164928
|
var TreeviewButton = /*#__PURE__*/function (_React$Component) {
|
|
@@ -165690,7 +165899,7 @@ var treeViewDownload = {
|
|
|
165690
165899
|
}
|
|
165691
165900
|
};
|
|
165692
165901
|
|
|
165693
|
-
var plugin$
|
|
165902
|
+
var plugin$j = function plugin(controls) {
|
|
165694
165903
|
return {
|
|
165695
165904
|
pluginName: "LayerTree",
|
|
165696
165905
|
enabled: true,
|
|
@@ -165704,7 +165913,7 @@ var plugin$i = function plugin(controls) {
|
|
|
165704
165913
|
};
|
|
165705
165914
|
|
|
165706
165915
|
var geoJSON$3 = new GeoJSON();
|
|
165707
|
-
var bundle$
|
|
165916
|
+
var bundle$g = {
|
|
165708
165917
|
name: "vectorIdent",
|
|
165709
165918
|
getReducer: function getReducer() {
|
|
165710
165919
|
var initialData = {
|
|
@@ -165836,10 +166045,10 @@ var bundle$f = {
|
|
|
165836
166045
|
}
|
|
165837
166046
|
};
|
|
165838
166047
|
|
|
165839
|
-
var plugin$
|
|
166048
|
+
var plugin$k = {
|
|
165840
166049
|
pluginName: 'Identify Vector',
|
|
165841
166050
|
enabled: true,
|
|
165842
|
-
bundle: bundle$
|
|
166051
|
+
bundle: bundle$g,
|
|
165843
166052
|
components: []
|
|
165844
166053
|
};
|
|
165845
166054
|
|
|
@@ -165893,7 +166102,7 @@ function values$1(object) {
|
|
|
165893
166102
|
|
|
165894
166103
|
var values_1 = values$1;
|
|
165895
166104
|
|
|
165896
|
-
var bundle$
|
|
166105
|
+
var bundle$h = {
|
|
165897
166106
|
name: 'vectorSearch',
|
|
165898
166107
|
getReducer: function getReducer() {
|
|
165899
166108
|
var initialData = {
|
|
@@ -166007,10 +166216,10 @@ var bundle$g = {
|
|
|
166007
166216
|
}
|
|
166008
166217
|
};
|
|
166009
166218
|
|
|
166010
|
-
var plugin$
|
|
166219
|
+
var plugin$l = {
|
|
166011
166220
|
pluginName: 'Vector Search',
|
|
166012
166221
|
enabled: true,
|
|
166013
|
-
bundle: bundle$
|
|
166222
|
+
bundle: bundle$h,
|
|
166014
166223
|
components: []
|
|
166015
166224
|
};
|
|
166016
166225
|
|
|
@@ -166072,7 +166281,7 @@ var ZoomOutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166072
166281
|
}(React$1__default.Component);
|
|
166073
166282
|
var ZoomOutButton$1 = connect('doZoomOut', ZoomOutButton);
|
|
166074
166283
|
|
|
166075
|
-
var plugin$
|
|
166284
|
+
var plugin$m = {
|
|
166076
166285
|
pluginName: 'ZoomButtons',
|
|
166077
166286
|
enabled: true,
|
|
166078
166287
|
components: [{
|
|
@@ -166119,7 +166328,7 @@ var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166119
166328
|
}(React$1__default.Component);
|
|
166120
166329
|
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
166121
166330
|
|
|
166122
|
-
var bundle$
|
|
166331
|
+
var bundle$i = {
|
|
166123
166332
|
name: "zoomLevel",
|
|
166124
166333
|
getReducer: function getReducer() {
|
|
166125
166334
|
var initialData = {
|
|
@@ -166156,10 +166365,10 @@ var bundle$h = {
|
|
|
166156
166365
|
}
|
|
166157
166366
|
};
|
|
166158
166367
|
|
|
166159
|
-
var plugin$
|
|
166368
|
+
var plugin$n = {
|
|
166160
166369
|
pluginName: 'zoomIndicator',
|
|
166161
166370
|
enabled: true,
|
|
166162
|
-
bundle: bundle$
|
|
166371
|
+
bundle: bundle$i,
|
|
166163
166372
|
components: [{
|
|
166164
166373
|
component: zoomIndicator$1,
|
|
166165
166374
|
region: 'right-sidebar-top',
|
|
@@ -166225,7 +166434,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
166225
166434
|
}(React$1__default.Component);
|
|
166226
166435
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
166227
166436
|
|
|
166228
|
-
var bundle$
|
|
166437
|
+
var bundle$j = {
|
|
166229
166438
|
name: "zoomHome",
|
|
166230
166439
|
getReducer: function getReducer() {
|
|
166231
166440
|
var initialData = {
|
|
@@ -166293,10 +166502,10 @@ var bundle$i = {
|
|
|
166293
166502
|
}
|
|
166294
166503
|
};
|
|
166295
166504
|
|
|
166296
|
-
var plugin$
|
|
166505
|
+
var plugin$o = {
|
|
166297
166506
|
pluginName: "ZoomToInitial",
|
|
166298
166507
|
enabled: true,
|
|
166299
|
-
bundle: bundle$
|
|
166508
|
+
bundle: bundle$j,
|
|
166300
166509
|
components: [{
|
|
166301
166510
|
component: ZoomHomeButton$1,
|
|
166302
166511
|
region: "left-sidebar-top",
|
|
@@ -166365,7 +166574,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
166365
166574
|
var zoombox = createInteraction({
|
|
166366
166575
|
interaction: 'dragbox'
|
|
166367
166576
|
});
|
|
166368
|
-
var bundle$
|
|
166577
|
+
var bundle$k = {
|
|
166369
166578
|
name: 'zoombox',
|
|
166370
166579
|
getReducer: function getReducer() {
|
|
166371
166580
|
var initialData = {
|
|
@@ -166458,10 +166667,10 @@ var bundle$j = {
|
|
|
166458
166667
|
}
|
|
166459
166668
|
};
|
|
166460
166669
|
|
|
166461
|
-
var plugin$
|
|
166670
|
+
var plugin$p = {
|
|
166462
166671
|
pluginName: 'ZoomtoExtent',
|
|
166463
166672
|
enabled: true,
|
|
166464
|
-
bundle: bundle$
|
|
166673
|
+
bundle: bundle$k,
|
|
166465
166674
|
components: [{
|
|
166466
166675
|
component: ZoomToBoxButton$1,
|
|
166467
166676
|
region: 'basic-toolbar',
|
|
@@ -166504,7 +166713,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
166504
166713
|
}(React$1__default.Component);
|
|
166505
166714
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
166506
166715
|
|
|
166507
|
-
var bundle$
|
|
166716
|
+
var bundle$l = {
|
|
166508
166717
|
name: "mapLoading",
|
|
166509
166718
|
getReducer: function getReducer() {
|
|
166510
166719
|
var initialData = {
|
|
@@ -166537,10 +166746,10 @@ var bundle$k = {
|
|
|
166537
166746
|
}
|
|
166538
166747
|
};
|
|
166539
166748
|
|
|
166540
|
-
var plugin$
|
|
166749
|
+
var plugin$q = {
|
|
166541
166750
|
pluginName: "MapLoadingIndicator",
|
|
166542
166751
|
enabled: true,
|
|
166543
|
-
bundle: bundle$
|
|
166752
|
+
bundle: bundle$l,
|
|
166544
166753
|
components: [{
|
|
166545
166754
|
component: MapLoadingIndicator$1,
|
|
166546
166755
|
region: "lower-right-toolbar",
|
|
@@ -166570,26 +166779,27 @@ exports.arcgisIdent = plugin$1;
|
|
|
166570
166779
|
exports.basemapSwitcher = plugin$2;
|
|
166571
166780
|
exports.bookmarks = plugin$3;
|
|
166572
166781
|
exports.changeLog = plugin$4;
|
|
166573
|
-
exports.coordDisplay = plugin$
|
|
166574
|
-
exports.draw = plugin$
|
|
166782
|
+
exports.coordDisplay = plugin$6;
|
|
166783
|
+
exports.draw = plugin$7;
|
|
166575
166784
|
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.
|
|
166785
|
+
exports.geocoder = plugin$8;
|
|
166786
|
+
exports.geojsonIdent = plugin$9;
|
|
166787
|
+
exports.identify = plugin$a;
|
|
166788
|
+
exports.legend = plugin$b;
|
|
166789
|
+
exports.mapLoadingIndicator = plugin$q;
|
|
166790
|
+
exports.measureTools = plugin$c;
|
|
166791
|
+
exports.permalink = plugin$d;
|
|
166792
|
+
exports.printMap = plugin$e;
|
|
166793
|
+
exports.questionsTab = plugin$f;
|
|
166794
|
+
exports.rasterIdent = plugin$g;
|
|
166795
|
+
exports.resources = plugin$5;
|
|
166796
|
+
exports.rotateNorth = plugin$h;
|
|
166797
|
+
exports.themeSwitcher = plugin$i;
|
|
166798
|
+
exports.treeView = plugin$j;
|
|
166589
166799
|
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$
|
|
166800
|
+
exports.vectorIdent = plugin$k;
|
|
166801
|
+
exports.vectorSearch = plugin$l;
|
|
166802
|
+
exports.zoomHome = plugin$o;
|
|
166803
|
+
exports.zoomInOut = plugin$m;
|
|
166804
|
+
exports.zoomLevel = plugin$n;
|
|
166805
|
+
exports.zoomToBox = plugin$p;
|