@corpsmap/corpsmap 3.2.51 → 3.2.52

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 CHANGED
@@ -79378,8 +79378,8 @@ var scaleToZoomLevel = function (scale, ifnull) {
79378
79378
  return zoom;
79379
79379
  };
79380
79380
 
79381
- /**
79382
- * Private methods basically
79381
+ /**
79382
+ * Private methods basically
79383
79383
  */
79384
79384
 
79385
79385
  var createNode$1 = function createNode(options, map) {
@@ -79429,7 +79429,9 @@ var createNode$1 = function createNode(options, map) {
79429
79429
  hoverText: options.hoverText,
79430
79430
  folderHoverText: options.folderHoverText,
79431
79431
  folderURL: options.folderURL,
79432
- groupTag: options.groupTag
79432
+ groupTag: options.groupTag,
79433
+ layerFunction: options.layerFunction,
79434
+ layerParams: options.layerParams
79433
79435
  };
79434
79436
  return node;
79435
79437
  };
@@ -79454,8 +79456,8 @@ var insertNodeAt = function insertNodeAt(node, parent, idx) {
79454
79456
  parent.children.splice(idx, 0, node);
79455
79457
  };
79456
79458
 
79457
- /**
79458
- * Start store bundle config
79459
+ /**
79460
+ * Start store bundle config
79459
79461
  */
79460
79462
 
79461
79463
  var mapLayersBundle = {
@@ -79888,6 +79890,14 @@ var mapLayersBundle = {
79888
79890
  type: "LAYERS_LIST_UPDATED",
79889
79891
  payload: Object.assign({}, layers)
79890
79892
  });
79893
+ if (node.visible && node.layerFunction && node.layerParams) {
79894
+ var params = node.layerParams;
79895
+ var layerFunction = node.layerFunction;
79896
+ var storeFunction = store[layerFunction];
79897
+ if (storeFunction) {
79898
+ storeFunction(params);
79899
+ }
79900
+ }
79891
79901
  };
79892
79902
  },
79893
79903
  doLayerSetLabels: function doLayerSetLabels(nodeId, labelsOn) {
@@ -106658,7 +106668,7 @@ var config = {
106658
106668
  };
106659
106669
 
106660
106670
  var name = "@corpsmap/corpsmap";
106661
- var version$1 = "3.2.51";
106671
+ var version$1 = "3.2.52";
106662
106672
  var description = "CorpsMap as React Components";
106663
106673
  var main = "index.js";
106664
106674
  var scripts = {
@@ -136945,7 +136955,6 @@ var bundle$3 = {
136945
136955
  var targetValue = evt.target.value;
136946
136956
  // let logData = store.selectChangeLogItems();
136947
136957
  var logData = store.selectAllChangeLogItems();
136948
- // debugger
136949
136958
  if (targetValue.length > 2) {
136950
136959
  var wkLogData = [];
136951
136960
  logData.forEach(function (item) {
package/lib/prod.js CHANGED
@@ -79292,8 +79292,8 @@ var scaleToZoomLevel = function (scale, ifnull) {
79292
79292
  return zoom;
79293
79293
  };
79294
79294
 
79295
- /**
79296
- * Private methods basically
79295
+ /**
79296
+ * Private methods basically
79297
79297
  */
79298
79298
 
79299
79299
  var createNode$1 = function createNode(options, map) {
@@ -79343,7 +79343,9 @@ var createNode$1 = function createNode(options, map) {
79343
79343
  hoverText: options.hoverText,
79344
79344
  folderHoverText: options.folderHoverText,
79345
79345
  folderURL: options.folderURL,
79346
- groupTag: options.groupTag
79346
+ groupTag: options.groupTag,
79347
+ layerFunction: options.layerFunction,
79348
+ layerParams: options.layerParams
79347
79349
  };
79348
79350
  return node;
79349
79351
  };
@@ -79368,8 +79370,8 @@ var insertNodeAt = function insertNodeAt(node, parent, idx) {
79368
79370
  parent.children.splice(idx, 0, node);
79369
79371
  };
79370
79372
 
79371
- /**
79372
- * Start store bundle config
79373
+ /**
79374
+ * Start store bundle config
79373
79375
  */
79374
79376
 
79375
79377
  var mapLayersBundle = {
@@ -79802,6 +79804,14 @@ var mapLayersBundle = {
79802
79804
  type: "LAYERS_LIST_UPDATED",
79803
79805
  payload: Object.assign({}, layers)
79804
79806
  });
79807
+ if (node.visible && node.layerFunction && node.layerParams) {
79808
+ var params = node.layerParams;
79809
+ var layerFunction = node.layerFunction;
79810
+ var storeFunction = store[layerFunction];
79811
+ if (storeFunction) {
79812
+ storeFunction(params);
79813
+ }
79814
+ }
79805
79815
  };
79806
79816
  },
79807
79817
  doLayerSetLabels: function doLayerSetLabels(nodeId, labelsOn) {
@@ -106572,7 +106582,7 @@ var config = {
106572
106582
  };
106573
106583
 
106574
106584
  var name = "@corpsmap/corpsmap";
106575
- var version$1 = "3.2.51";
106585
+ var version$1 = "3.2.52";
106576
106586
  var description = "CorpsMap as React Components";
106577
106587
  var main = "index.js";
106578
106588
  var scripts = {
@@ -136859,7 +136869,6 @@ var bundle$3 = {
136859
136869
  var targetValue = evt.target.value;
136860
136870
  // let logData = store.selectChangeLogItems();
136861
136871
  var logData = store.selectAllChangeLogItems();
136862
- // debugger
136863
136872
  if (targetValue.length > 2) {
136864
136873
  var wkLogData = [];
136865
136874
  logData.forEach(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corpsmap/corpsmap",
3
- "version": "3.2.51",
3
+ "version": "3.2.52",
4
4
  "description": "CorpsMap as React Components",
5
5
  "main": "index.js",
6
6
  "scripts": {