@corpsmap/corpsmap 3.0.7 → 3.0.11
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 +122 -20
- package/lib/prod.js +122 -20
- package/package.json +1 -1
- package/src/application-bundles/create-ol-map-bundle.js +2 -2
- package/src/application-bundles/map-view-bundle.js +5 -3
- package/src/core-plugins/tree-view/download-bundle.js +3 -1
- package/src/core-plugins/tree-view/layer-subpanel/layer-subpanel.js +5 -2
- package/src/core-plugins/zoom-level/bundle.js +32 -0
- package/src/core-plugins/zoom-level/index.js +16 -0
- package/src/core-plugins/zoom-level/zoom-indicator.js +35 -0
- package/src/index.js +3 -0
package/lib/dev.js
CHANGED
|
@@ -78086,9 +78086,9 @@ var createOlMapBundle = (function (opts) {
|
|
|
78086
78086
|
var dispatch = _ref2.dispatch,
|
|
78087
78087
|
store = _ref2.store;
|
|
78088
78088
|
var geoProjection = store.selectMapGeoProjection();
|
|
78089
|
-
var webProjection = store.selectMapWebProjection(); //CWBI-13636 Limit Map Extent
|
|
78089
|
+
var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent
|
|
78090
78090
|
|
|
78091
|
-
var extent = transformExtent([-180, -
|
|
78091
|
+
var extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection);
|
|
78092
78092
|
var center = opts.hasOwnProperty("center") ? opts.center : store.selectMapCenter();
|
|
78093
78093
|
var zoom = opts.hasOwnProperty("zoom") ? opts.zoom : store.selectMapZoom();
|
|
78094
78094
|
var rotation = opts.hasOwnProperty("rotation") ? opts.rotation : store.selectMapRotation();
|
|
@@ -103733,7 +103733,8 @@ var mapViewBundle = {
|
|
|
103733
103733
|
maxZoom: 22,
|
|
103734
103734
|
action: null,
|
|
103735
103735
|
updating: false,
|
|
103736
|
-
listening: false
|
|
103736
|
+
listening: false,
|
|
103737
|
+
shouldUpdateZoom: false
|
|
103737
103738
|
};
|
|
103738
103739
|
return function () {
|
|
103739
103740
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
@@ -103899,9 +103900,12 @@ var mapViewBundle = {
|
|
|
103899
103900
|
dispatch({
|
|
103900
103901
|
type: "VIEW_START_ACTION"
|
|
103901
103902
|
});
|
|
103902
|
-
var view = store.selectView();
|
|
103903
|
-
|
|
103904
|
-
|
|
103903
|
+
var view = store.selectView(); // pulling view
|
|
103904
|
+
|
|
103905
|
+
var currentZoom = view.getZoom(); // getting current view
|
|
103906
|
+
|
|
103907
|
+
animateView( // subtract 1 from current zoom
|
|
103908
|
+
{
|
|
103905
103909
|
zoom: currentZoom - 1
|
|
103906
103910
|
}, view);
|
|
103907
103911
|
dispatch({
|
|
@@ -105331,7 +105335,7 @@ var config = {
|
|
|
105331
105335
|
};
|
|
105332
105336
|
|
|
105333
105337
|
var name = "@corpsmap/corpsmap";
|
|
105334
|
-
var version$1 = "3.0.
|
|
105338
|
+
var version$1 = "3.0.11";
|
|
105335
105339
|
var description = "CorpsMap as React Components";
|
|
105336
105340
|
var main = "index.js";
|
|
105337
105341
|
var scripts = {
|
|
@@ -157883,7 +157887,10 @@ var treeViewDownload = {
|
|
|
157883
157887
|
},
|
|
157884
157888
|
doUpdateTreeViewLayerDownloadFormat: function doUpdateTreeViewLayerDownloadFormat(e) {
|
|
157885
157889
|
return function (_ref3) {
|
|
157886
|
-
var dispatch = _ref3.dispatch
|
|
157890
|
+
var dispatch = _ref3.dispatch,
|
|
157891
|
+
store = _ref3.store;
|
|
157892
|
+
e.preventDefault();
|
|
157893
|
+
e.stopPropagation();
|
|
157887
157894
|
var layer = store.selectTreeViewSelectedItem();
|
|
157888
157895
|
var format = e.target.value;
|
|
157889
157896
|
var url = null;
|
|
@@ -158397,6 +158404,100 @@ var plugin$j = {
|
|
|
158397
158404
|
}]
|
|
158398
158405
|
};
|
|
158399
158406
|
|
|
158407
|
+
var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
158408
|
+
_inherits(zoomIndicator, _React$Component);
|
|
158409
|
+
|
|
158410
|
+
var _super = _createSuper(zoomIndicator);
|
|
158411
|
+
|
|
158412
|
+
function zoomIndicator(props) {
|
|
158413
|
+
var _this;
|
|
158414
|
+
|
|
158415
|
+
_classCallCheck(this, zoomIndicator);
|
|
158416
|
+
|
|
158417
|
+
_this = _super.call(this, props);
|
|
158418
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
158419
|
+
return _this;
|
|
158420
|
+
}
|
|
158421
|
+
|
|
158422
|
+
_createClass(zoomIndicator, [{
|
|
158423
|
+
key: "handleClick",
|
|
158424
|
+
value: function handleClick() {}
|
|
158425
|
+
}, {
|
|
158426
|
+
key: "render",
|
|
158427
|
+
value: function render() {
|
|
158428
|
+
var _this$props = this.props,
|
|
158429
|
+
mapZoom = _this$props.mapZoom,
|
|
158430
|
+
zoomLevelIndicator = _this$props.zoomLevelIndicator;
|
|
158431
|
+
|
|
158432
|
+
if (zoomLevelIndicator == true) {
|
|
158433
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
158434
|
+
iconText: Math.floor(mapZoom),
|
|
158435
|
+
label: "Zoom-Indicator",
|
|
158436
|
+
title: "Zoom-Indicator",
|
|
158437
|
+
onClick: this.handleClick
|
|
158438
|
+
});
|
|
158439
|
+
} else {
|
|
158440
|
+
return null;
|
|
158441
|
+
}
|
|
158442
|
+
}
|
|
158443
|
+
}]);
|
|
158444
|
+
|
|
158445
|
+
return zoomIndicator;
|
|
158446
|
+
}(React$1__default.Component);
|
|
158447
|
+
|
|
158448
|
+
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
158449
|
+
|
|
158450
|
+
var bundle$f = {
|
|
158451
|
+
name: "zoomLevel",
|
|
158452
|
+
getReducer: function getReducer() {
|
|
158453
|
+
var initialData = {
|
|
158454
|
+
zoomLevelIndicator: false
|
|
158455
|
+
};
|
|
158456
|
+
return function () {
|
|
158457
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
158458
|
+
|
|
158459
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
158460
|
+
type = _ref.type,
|
|
158461
|
+
payload = _ref.payload;
|
|
158462
|
+
|
|
158463
|
+
switch (type) {
|
|
158464
|
+
case "ACTIVATE_ZOOM_INDICATOR":
|
|
158465
|
+
case "DEACTIVATE_ZOOM_INDICATOR":
|
|
158466
|
+
return Object.assign({}, state, payload);
|
|
158467
|
+
|
|
158468
|
+
default:
|
|
158469
|
+
return state;
|
|
158470
|
+
}
|
|
158471
|
+
};
|
|
158472
|
+
},
|
|
158473
|
+
doZoomIndicatorActivate: function doZoomIndicatorActivate() {
|
|
158474
|
+
return function (_ref2) {
|
|
158475
|
+
var dispatch = _ref2.dispatch,
|
|
158476
|
+
store = _ref2.store;
|
|
158477
|
+
dispatch({
|
|
158478
|
+
type: "ACTIVATE_ZOOM_INDICATOR",
|
|
158479
|
+
payload: {
|
|
158480
|
+
zoomLevelIndicator: true
|
|
158481
|
+
}
|
|
158482
|
+
});
|
|
158483
|
+
};
|
|
158484
|
+
},
|
|
158485
|
+
selectZoomLevelIndicator: function selectZoomLevelIndicator(state) {
|
|
158486
|
+
return state.zoomLevel.zoomLevelIndicator;
|
|
158487
|
+
}
|
|
158488
|
+
};
|
|
158489
|
+
|
|
158490
|
+
var plugin$k = {
|
|
158491
|
+
pluginName: 'zoomIndicator',
|
|
158492
|
+
enabled: true,
|
|
158493
|
+
bundle: bundle$f,
|
|
158494
|
+
components: [{
|
|
158495
|
+
component: zoomIndicator$1,
|
|
158496
|
+
region: 'right-sidebar-top',
|
|
158497
|
+
sortOrder: 40
|
|
158498
|
+
}]
|
|
158499
|
+
};
|
|
158500
|
+
|
|
158400
158501
|
var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
158401
158502
|
_inherits(ZoomHomeButton, _React$Component);
|
|
158402
158503
|
|
|
@@ -158464,7 +158565,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
158464
158565
|
|
|
158465
158566
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
158466
158567
|
|
|
158467
|
-
var bundle$
|
|
158568
|
+
var bundle$g = {
|
|
158468
158569
|
name: "zoomHome",
|
|
158469
158570
|
getReducer: function getReducer() {
|
|
158470
158571
|
var initialData = {
|
|
@@ -158535,10 +158636,10 @@ var bundle$f = {
|
|
|
158535
158636
|
}
|
|
158536
158637
|
};
|
|
158537
158638
|
|
|
158538
|
-
var plugin$
|
|
158639
|
+
var plugin$l = {
|
|
158539
158640
|
pluginName: "ZoomToInitial",
|
|
158540
158641
|
enabled: true,
|
|
158541
|
-
bundle: bundle$
|
|
158642
|
+
bundle: bundle$g,
|
|
158542
158643
|
components: [{
|
|
158543
158644
|
component: ZoomHomeButton$1,
|
|
158544
158645
|
region: "left-sidebar-top",
|
|
@@ -158610,7 +158711,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
158610
158711
|
var zoombox = createInteraction({
|
|
158611
158712
|
interaction: 'dragbox'
|
|
158612
158713
|
});
|
|
158613
|
-
var bundle$
|
|
158714
|
+
var bundle$h = {
|
|
158614
158715
|
name: 'zoombox',
|
|
158615
158716
|
getReducer: function getReducer() {
|
|
158616
158717
|
var initialData = {
|
|
@@ -158708,10 +158809,10 @@ var bundle$g = {
|
|
|
158708
158809
|
}
|
|
158709
158810
|
};
|
|
158710
158811
|
|
|
158711
|
-
var plugin$
|
|
158812
|
+
var plugin$m = {
|
|
158712
158813
|
pluginName: 'ZoomtoExtent',
|
|
158713
158814
|
enabled: true,
|
|
158714
|
-
bundle: bundle$
|
|
158815
|
+
bundle: bundle$h,
|
|
158715
158816
|
components: [{
|
|
158716
158817
|
component: ZoomToBoxButton$1,
|
|
158717
158818
|
region: 'basic-toolbar',
|
|
@@ -158763,7 +158864,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
158763
158864
|
|
|
158764
158865
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
158765
158866
|
|
|
158766
|
-
var bundle$
|
|
158867
|
+
var bundle$i = {
|
|
158767
158868
|
name: "mapLoading",
|
|
158768
158869
|
getReducer: function getReducer() {
|
|
158769
158870
|
var initialData = {
|
|
@@ -158800,10 +158901,10 @@ var bundle$h = {
|
|
|
158800
158901
|
}
|
|
158801
158902
|
};
|
|
158802
158903
|
|
|
158803
|
-
var plugin$
|
|
158904
|
+
var plugin$n = {
|
|
158804
158905
|
pluginName: "MapLoadingIndicator",
|
|
158805
158906
|
enabled: true,
|
|
158806
|
-
bundle: bundle$
|
|
158907
|
+
bundle: bundle$i,
|
|
158807
158908
|
components: [{
|
|
158808
158909
|
component: MapLoadingIndicator$1,
|
|
158809
158910
|
region: "lower-right-toolbar",
|
|
@@ -158839,7 +158940,7 @@ exports.geocoder = plugin$6;
|
|
|
158839
158940
|
exports.geojsonIdent = plugin$7;
|
|
158840
158941
|
exports.identify = plugin$8;
|
|
158841
158942
|
exports.legend = plugin$9;
|
|
158842
|
-
exports.mapLoadingIndicator = plugin$
|
|
158943
|
+
exports.mapLoadingIndicator = plugin$n;
|
|
158843
158944
|
exports.measureTools = plugin$a;
|
|
158844
158945
|
exports.permalink = plugin$b;
|
|
158845
158946
|
exports.printMap = plugin$c;
|
|
@@ -158850,6 +158951,7 @@ exports.treeView = plugin$g;
|
|
|
158850
158951
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
158851
158952
|
exports.vectorIdent = plugin$h;
|
|
158852
158953
|
exports.vectorSearch = plugin$i;
|
|
158853
|
-
exports.zoomHome = plugin$
|
|
158954
|
+
exports.zoomHome = plugin$l;
|
|
158854
158955
|
exports.zoomInOut = plugin$j;
|
|
158855
|
-
exports.
|
|
158956
|
+
exports.zoomLevel = plugin$k;
|
|
158957
|
+
exports.zoomToBox = plugin$m;
|
package/lib/prod.js
CHANGED
|
@@ -78000,9 +78000,9 @@ var createOlMapBundle = (function (opts) {
|
|
|
78000
78000
|
var dispatch = _ref2.dispatch,
|
|
78001
78001
|
store = _ref2.store;
|
|
78002
78002
|
var geoProjection = store.selectMapGeoProjection();
|
|
78003
|
-
var webProjection = store.selectMapWebProjection(); //CWBI-13636 Limit Map Extent
|
|
78003
|
+
var webProjection = store.selectMapWebProjection(); // CWBI-13636 Limit Map Extent
|
|
78004
78004
|
|
|
78005
|
-
var extent = transformExtent([-180, -
|
|
78005
|
+
var extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection);
|
|
78006
78006
|
var center = opts.hasOwnProperty("center") ? opts.center : store.selectMapCenter();
|
|
78007
78007
|
var zoom = opts.hasOwnProperty("zoom") ? opts.zoom : store.selectMapZoom();
|
|
78008
78008
|
var rotation = opts.hasOwnProperty("rotation") ? opts.rotation : store.selectMapRotation();
|
|
@@ -103647,7 +103647,8 @@ var mapViewBundle = {
|
|
|
103647
103647
|
maxZoom: 22,
|
|
103648
103648
|
action: null,
|
|
103649
103649
|
updating: false,
|
|
103650
|
-
listening: false
|
|
103650
|
+
listening: false,
|
|
103651
|
+
shouldUpdateZoom: false
|
|
103651
103652
|
};
|
|
103652
103653
|
return function () {
|
|
103653
103654
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
@@ -103813,9 +103814,12 @@ var mapViewBundle = {
|
|
|
103813
103814
|
dispatch({
|
|
103814
103815
|
type: "VIEW_START_ACTION"
|
|
103815
103816
|
});
|
|
103816
|
-
var view = store.selectView();
|
|
103817
|
-
|
|
103818
|
-
|
|
103817
|
+
var view = store.selectView(); // pulling view
|
|
103818
|
+
|
|
103819
|
+
var currentZoom = view.getZoom(); // getting current view
|
|
103820
|
+
|
|
103821
|
+
animateView( // subtract 1 from current zoom
|
|
103822
|
+
{
|
|
103819
103823
|
zoom: currentZoom - 1
|
|
103820
103824
|
}, view);
|
|
103821
103825
|
dispatch({
|
|
@@ -105245,7 +105249,7 @@ var config = {
|
|
|
105245
105249
|
};
|
|
105246
105250
|
|
|
105247
105251
|
var name = "@corpsmap/corpsmap";
|
|
105248
|
-
var version$1 = "3.0.
|
|
105252
|
+
var version$1 = "3.0.11";
|
|
105249
105253
|
var description = "CorpsMap as React Components";
|
|
105250
105254
|
var main = "index.js";
|
|
105251
105255
|
var scripts = {
|
|
@@ -157797,7 +157801,10 @@ var treeViewDownload = {
|
|
|
157797
157801
|
},
|
|
157798
157802
|
doUpdateTreeViewLayerDownloadFormat: function doUpdateTreeViewLayerDownloadFormat(e) {
|
|
157799
157803
|
return function (_ref3) {
|
|
157800
|
-
var dispatch = _ref3.dispatch
|
|
157804
|
+
var dispatch = _ref3.dispatch,
|
|
157805
|
+
store = _ref3.store;
|
|
157806
|
+
e.preventDefault();
|
|
157807
|
+
e.stopPropagation();
|
|
157801
157808
|
var layer = store.selectTreeViewSelectedItem();
|
|
157802
157809
|
var format = e.target.value;
|
|
157803
157810
|
var url = null;
|
|
@@ -158311,6 +158318,100 @@ var plugin$j = {
|
|
|
158311
158318
|
}]
|
|
158312
158319
|
};
|
|
158313
158320
|
|
|
158321
|
+
var zoomIndicator = /*#__PURE__*/function (_React$Component) {
|
|
158322
|
+
_inherits(zoomIndicator, _React$Component);
|
|
158323
|
+
|
|
158324
|
+
var _super = _createSuper(zoomIndicator);
|
|
158325
|
+
|
|
158326
|
+
function zoomIndicator(props) {
|
|
158327
|
+
var _this;
|
|
158328
|
+
|
|
158329
|
+
_classCallCheck(this, zoomIndicator);
|
|
158330
|
+
|
|
158331
|
+
_this = _super.call(this, props);
|
|
158332
|
+
_this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));
|
|
158333
|
+
return _this;
|
|
158334
|
+
}
|
|
158335
|
+
|
|
158336
|
+
_createClass(zoomIndicator, [{
|
|
158337
|
+
key: "handleClick",
|
|
158338
|
+
value: function handleClick() {}
|
|
158339
|
+
}, {
|
|
158340
|
+
key: "render",
|
|
158341
|
+
value: function render() {
|
|
158342
|
+
var _this$props = this.props,
|
|
158343
|
+
mapZoom = _this$props.mapZoom,
|
|
158344
|
+
zoomLevelIndicator = _this$props.zoomLevelIndicator;
|
|
158345
|
+
|
|
158346
|
+
if (zoomLevelIndicator == true) {
|
|
158347
|
+
return /*#__PURE__*/React$1__default.createElement(SidebarButton$1, {
|
|
158348
|
+
iconText: Math.floor(mapZoom),
|
|
158349
|
+
label: "Zoom-Indicator",
|
|
158350
|
+
title: "Zoom-Indicator",
|
|
158351
|
+
onClick: this.handleClick
|
|
158352
|
+
});
|
|
158353
|
+
} else {
|
|
158354
|
+
return null;
|
|
158355
|
+
}
|
|
158356
|
+
}
|
|
158357
|
+
}]);
|
|
158358
|
+
|
|
158359
|
+
return zoomIndicator;
|
|
158360
|
+
}(React$1__default.Component);
|
|
158361
|
+
|
|
158362
|
+
var zoomIndicator$1 = connect('doZoomIndicatorActivate', 'selectMapZoom', 'selectZoomLevelIndicator', zoomIndicator);
|
|
158363
|
+
|
|
158364
|
+
var bundle$f = {
|
|
158365
|
+
name: "zoomLevel",
|
|
158366
|
+
getReducer: function getReducer() {
|
|
158367
|
+
var initialData = {
|
|
158368
|
+
zoomLevelIndicator: false
|
|
158369
|
+
};
|
|
158370
|
+
return function () {
|
|
158371
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialData;
|
|
158372
|
+
|
|
158373
|
+
var _ref = arguments.length > 1 ? arguments[1] : undefined,
|
|
158374
|
+
type = _ref.type,
|
|
158375
|
+
payload = _ref.payload;
|
|
158376
|
+
|
|
158377
|
+
switch (type) {
|
|
158378
|
+
case "ACTIVATE_ZOOM_INDICATOR":
|
|
158379
|
+
case "DEACTIVATE_ZOOM_INDICATOR":
|
|
158380
|
+
return Object.assign({}, state, payload);
|
|
158381
|
+
|
|
158382
|
+
default:
|
|
158383
|
+
return state;
|
|
158384
|
+
}
|
|
158385
|
+
};
|
|
158386
|
+
},
|
|
158387
|
+
doZoomIndicatorActivate: function doZoomIndicatorActivate() {
|
|
158388
|
+
return function (_ref2) {
|
|
158389
|
+
var dispatch = _ref2.dispatch,
|
|
158390
|
+
store = _ref2.store;
|
|
158391
|
+
dispatch({
|
|
158392
|
+
type: "ACTIVATE_ZOOM_INDICATOR",
|
|
158393
|
+
payload: {
|
|
158394
|
+
zoomLevelIndicator: true
|
|
158395
|
+
}
|
|
158396
|
+
});
|
|
158397
|
+
};
|
|
158398
|
+
},
|
|
158399
|
+
selectZoomLevelIndicator: function selectZoomLevelIndicator(state) {
|
|
158400
|
+
return state.zoomLevel.zoomLevelIndicator;
|
|
158401
|
+
}
|
|
158402
|
+
};
|
|
158403
|
+
|
|
158404
|
+
var plugin$k = {
|
|
158405
|
+
pluginName: 'zoomIndicator',
|
|
158406
|
+
enabled: true,
|
|
158407
|
+
bundle: bundle$f,
|
|
158408
|
+
components: [{
|
|
158409
|
+
component: zoomIndicator$1,
|
|
158410
|
+
region: 'right-sidebar-top',
|
|
158411
|
+
sortOrder: 40
|
|
158412
|
+
}]
|
|
158413
|
+
};
|
|
158414
|
+
|
|
158314
158415
|
var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
158315
158416
|
_inherits(ZoomHomeButton, _React$Component);
|
|
158316
158417
|
|
|
@@ -158378,7 +158479,7 @@ var ZoomHomeButton = /*#__PURE__*/function (_React$Component) {
|
|
|
158378
158479
|
|
|
158379
158480
|
var ZoomHomeButton$1 = connect("doZoomHome", "doZoomHomeResetLoc", "doNotificationsFire", ZoomHomeButton);
|
|
158380
158481
|
|
|
158381
|
-
var bundle$
|
|
158482
|
+
var bundle$g = {
|
|
158382
158483
|
name: "zoomHome",
|
|
158383
158484
|
getReducer: function getReducer() {
|
|
158384
158485
|
var initialData = {
|
|
@@ -158449,10 +158550,10 @@ var bundle$f = {
|
|
|
158449
158550
|
}
|
|
158450
158551
|
};
|
|
158451
158552
|
|
|
158452
|
-
var plugin$
|
|
158553
|
+
var plugin$l = {
|
|
158453
158554
|
pluginName: "ZoomToInitial",
|
|
158454
158555
|
enabled: true,
|
|
158455
|
-
bundle: bundle$
|
|
158556
|
+
bundle: bundle$g,
|
|
158456
158557
|
components: [{
|
|
158457
158558
|
component: ZoomHomeButton$1,
|
|
158458
158559
|
region: "left-sidebar-top",
|
|
@@ -158524,7 +158625,7 @@ var ZoomToBoxButton$1 = connect('doStartZoomBox', 'doStopZoomBox', ZoomToBoxButt
|
|
|
158524
158625
|
var zoombox = createInteraction({
|
|
158525
158626
|
interaction: 'dragbox'
|
|
158526
158627
|
});
|
|
158527
|
-
var bundle$
|
|
158628
|
+
var bundle$h = {
|
|
158528
158629
|
name: 'zoombox',
|
|
158529
158630
|
getReducer: function getReducer() {
|
|
158530
158631
|
var initialData = {
|
|
@@ -158622,10 +158723,10 @@ var bundle$g = {
|
|
|
158622
158723
|
}
|
|
158623
158724
|
};
|
|
158624
158725
|
|
|
158625
|
-
var plugin$
|
|
158726
|
+
var plugin$m = {
|
|
158626
158727
|
pluginName: 'ZoomtoExtent',
|
|
158627
158728
|
enabled: true,
|
|
158628
|
-
bundle: bundle$
|
|
158729
|
+
bundle: bundle$h,
|
|
158629
158730
|
components: [{
|
|
158630
158731
|
component: ZoomToBoxButton$1,
|
|
158631
158732
|
region: 'basic-toolbar',
|
|
@@ -158677,7 +158778,7 @@ var MapLoadingIndicator = /*#__PURE__*/function (_React$Component) {
|
|
|
158677
158778
|
|
|
158678
158779
|
var MapLoadingIndicator$1 = connect("selectMapLoading", MapLoadingIndicator);
|
|
158679
158780
|
|
|
158680
|
-
var bundle$
|
|
158781
|
+
var bundle$i = {
|
|
158681
158782
|
name: "mapLoading",
|
|
158682
158783
|
getReducer: function getReducer() {
|
|
158683
158784
|
var initialData = {
|
|
@@ -158714,10 +158815,10 @@ var bundle$h = {
|
|
|
158714
158815
|
}
|
|
158715
158816
|
};
|
|
158716
158817
|
|
|
158717
|
-
var plugin$
|
|
158818
|
+
var plugin$n = {
|
|
158718
158819
|
pluginName: "MapLoadingIndicator",
|
|
158719
158820
|
enabled: true,
|
|
158720
|
-
bundle: bundle$
|
|
158821
|
+
bundle: bundle$i,
|
|
158721
158822
|
components: [{
|
|
158722
158823
|
component: MapLoadingIndicator$1,
|
|
158723
158824
|
region: "lower-right-toolbar",
|
|
@@ -158753,7 +158854,7 @@ exports.geocoder = plugin$6;
|
|
|
158753
158854
|
exports.geojsonIdent = plugin$7;
|
|
158754
158855
|
exports.identify = plugin$8;
|
|
158755
158856
|
exports.legend = plugin$9;
|
|
158756
|
-
exports.mapLoadingIndicator = plugin$
|
|
158857
|
+
exports.mapLoadingIndicator = plugin$n;
|
|
158757
158858
|
exports.measureTools = plugin$a;
|
|
158758
158859
|
exports.permalink = plugin$b;
|
|
158759
158860
|
exports.printMap = plugin$c;
|
|
@@ -158764,6 +158865,7 @@ exports.treeView = plugin$g;
|
|
|
158764
158865
|
exports.treeViewPanel = TreeviewPanel$1;
|
|
158765
158866
|
exports.vectorIdent = plugin$h;
|
|
158766
158867
|
exports.vectorSearch = plugin$i;
|
|
158767
|
-
exports.zoomHome = plugin$
|
|
158868
|
+
exports.zoomHome = plugin$l;
|
|
158768
158869
|
exports.zoomInOut = plugin$j;
|
|
158769
|
-
exports.
|
|
158870
|
+
exports.zoomLevel = plugin$k;
|
|
158871
|
+
exports.zoomToBox = plugin$m;
|
package/package.json
CHANGED
|
@@ -63,8 +63,8 @@ export default (opts) => {
|
|
|
63
63
|
doMapInitialize: (el, opts) => ({ dispatch, store }) => {
|
|
64
64
|
const geoProjection = store.selectMapGeoProjection();
|
|
65
65
|
const webProjection = store.selectMapWebProjection();
|
|
66
|
-
//CWBI-13636 Limit Map Extent
|
|
67
|
-
const extent = transformExtent([-180, -
|
|
66
|
+
// CWBI-13636 Limit Map Extent
|
|
67
|
+
const extent = transformExtent([-180, -85, 180, 85], geoProjection, webProjection)
|
|
68
68
|
const center = opts.hasOwnProperty("center")
|
|
69
69
|
? opts.center
|
|
70
70
|
: store.selectMapCenter();
|
|
@@ -35,6 +35,7 @@ export default {
|
|
|
35
35
|
action: null,
|
|
36
36
|
updating: false,
|
|
37
37
|
listening: false,
|
|
38
|
+
shouldUpdateZoom: false,
|
|
38
39
|
};
|
|
39
40
|
|
|
40
41
|
return (state = initialData, { type, payload }) => {
|
|
@@ -97,6 +98,7 @@ export default {
|
|
|
97
98
|
roll: 0,
|
|
98
99
|
minZoom: d.minzoom ? d.minzoom : 0,
|
|
99
100
|
maxZoom: d.maxzoom ? d.maxzoom : 22,
|
|
101
|
+
|
|
100
102
|
};
|
|
101
103
|
|
|
102
104
|
dispatch({ type: "VIEW_SET_DEFAULTS", payload: config });
|
|
@@ -161,9 +163,9 @@ export default {
|
|
|
161
163
|
|
|
162
164
|
doZoomOut: () => ({ dispatch, store }) => {
|
|
163
165
|
dispatch({ type: "VIEW_START_ACTION" });
|
|
164
|
-
const view = store.selectView();
|
|
165
|
-
const currentZoom = view.getZoom();
|
|
166
|
-
animateView(
|
|
166
|
+
const view = store.selectView(); // pulling view
|
|
167
|
+
const currentZoom = view.getZoom(); // getting current view
|
|
168
|
+
animateView( // subtract 1 from current zoom
|
|
167
169
|
{
|
|
168
170
|
zoom: currentZoom - 1,
|
|
169
171
|
},
|
|
@@ -41,7 +41,9 @@ export const treeViewDownload = {
|
|
|
41
41
|
},
|
|
42
42
|
doUpdateTreeViewLayerDownloadFormat:
|
|
43
43
|
(e) =>
|
|
44
|
-
({ dispatch }) => {
|
|
44
|
+
({ dispatch, store }) => {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
e.stopPropagation();
|
|
45
47
|
const layer = store.selectTreeViewSelectedItem();
|
|
46
48
|
const format = e.target.value;
|
|
47
49
|
let url = null;
|
|
@@ -53,7 +53,10 @@ const LayerSubpanel = (props) => {
|
|
|
53
53
|
<i className="mdi mdi-star" title="Layer saved to favorites list" />
|
|
54
54
|
) : null}
|
|
55
55
|
{treeViewSelectedItem.userDefaultLayer ? (
|
|
56
|
-
<i
|
|
56
|
+
<i
|
|
57
|
+
className="mdi mdi-account"
|
|
58
|
+
title="Layer saved to user default layer list"
|
|
59
|
+
/>
|
|
57
60
|
) : null}
|
|
58
61
|
<b>{treeViewSelectedItem.displayName}</b>
|
|
59
62
|
</p>
|
|
@@ -95,7 +98,7 @@ const LayerSubpanel = (props) => {
|
|
|
95
98
|
<DefaultsToggle layer={treeViewSelectedItem} />
|
|
96
99
|
) : null}
|
|
97
100
|
|
|
98
|
-
{showDownload ?
|
|
101
|
+
{showDownload ? <DownloadLayer /> : null}
|
|
99
102
|
|
|
100
103
|
<OpacitySlider layer={treeViewSelectedItem.mapLayer} />
|
|
101
104
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
name: "zoomLevel",
|
|
3
|
+
|
|
4
|
+
getReducer: () => {
|
|
5
|
+
const initialData = {
|
|
6
|
+
zoomLevelIndicator: false,
|
|
7
|
+
};
|
|
8
|
+
return (state = initialData, { type, payload }) => {
|
|
9
|
+
switch (type) {
|
|
10
|
+
case "ACTIVATE_ZOOM_INDICATOR":
|
|
11
|
+
case "DEACTIVATE_ZOOM_INDICATOR":
|
|
12
|
+
return Object.assign({}, state, payload);
|
|
13
|
+
default:
|
|
14
|
+
return state;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
doZoomIndicatorActivate: () => ({ dispatch, store }) => {
|
|
20
|
+
dispatch({
|
|
21
|
+
type: "ACTIVATE_ZOOM_INDICATOR",
|
|
22
|
+
payload: {
|
|
23
|
+
zoomLevelIndicator: true,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
selectZoomLevelIndicator: (state) => {
|
|
29
|
+
return state.zoomLevel.zoomLevelIndicator;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import zoomIndicator from './zoom-indicator';
|
|
2
|
+
import bundle from "./bundle";
|
|
3
|
+
|
|
4
|
+
const plugin = {
|
|
5
|
+
pluginName: 'zoomIndicator',
|
|
6
|
+
enabled: true,
|
|
7
|
+
bundle: bundle,
|
|
8
|
+
components:[{
|
|
9
|
+
component: zoomIndicator,
|
|
10
|
+
region: 'right-sidebar-top',
|
|
11
|
+
sortOrder: 40
|
|
12
|
+
|
|
13
|
+
}]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default plugin;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { connect } from "redux-bundler-react";
|
|
3
|
+
import { SidebarButton } from "../../application-controls/index";
|
|
4
|
+
|
|
5
|
+
class zoomIndicator extends React.Component {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.handleClick = this.handleClick.bind(this);
|
|
9
|
+
}
|
|
10
|
+
handleClick() {}
|
|
11
|
+
render() {
|
|
12
|
+
const {mapZoom, zoomLevelIndicator} = this.props;
|
|
13
|
+
|
|
14
|
+
if (zoomLevelIndicator == true){
|
|
15
|
+
return (
|
|
16
|
+
<SidebarButton
|
|
17
|
+
iconText={Math.floor(mapZoom)}
|
|
18
|
+
label="Zoom-Indicator"
|
|
19
|
+
title="Zoom-Indicator"
|
|
20
|
+
onClick={this.handleClick}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
else{
|
|
25
|
+
return (null);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default connect(
|
|
31
|
+
'doZoomIndicatorActivate',
|
|
32
|
+
'selectMapZoom',
|
|
33
|
+
'selectZoomLevelIndicator',
|
|
34
|
+
zoomIndicator
|
|
35
|
+
);
|
package/src/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import basemapSwitcher from "./core-plugins/basemap-switcher";
|
|
|
26
26
|
import bookmarks from "./core-plugins/bookmarks";
|
|
27
27
|
// import catalog from './core-plugins/catalog';
|
|
28
28
|
// import cmIdent from './core-plugins/identify-cm';
|
|
29
|
+
|
|
29
30
|
import coordDisplay from "./core-plugins/coordinate-display";
|
|
30
31
|
import draw from "./core-plugins/draw-tools";
|
|
31
32
|
// import editor from './core-plugins/editor';
|
|
@@ -46,6 +47,7 @@ import treeViewPanel from "./core-plugins/tree-view/tree-view-panel";
|
|
|
46
47
|
import vectorIdent from "./core-plugins/identify-vector";
|
|
47
48
|
import vectorSearch from "./core-plugins/vector-search";
|
|
48
49
|
import zoomInOut from "./core-plugins/zoom-in-out";
|
|
50
|
+
import zoomLevel from "./core-plugins/zoom-level";
|
|
49
51
|
import zoomHome from "./core-plugins/zoom-home";
|
|
50
52
|
import zoomToBox from "./core-plugins/zoom-to-box";
|
|
51
53
|
import mapLoadingIndicator from "./core-plugins/map-loading-indicator";
|
|
@@ -74,6 +76,7 @@ export {
|
|
|
74
76
|
bookmarks,
|
|
75
77
|
// catalog,
|
|
76
78
|
// cmIdent,
|
|
79
|
+
zoomLevel,
|
|
77
80
|
coordDisplay,
|
|
78
81
|
draw,
|
|
79
82
|
// editor,
|