@corpsmap/corpsmap 3.2.51 → 3.2.53

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) {
@@ -106315,6 +106325,14 @@ var config = {
106315
106325
  subdomains: "abcd",
106316
106326
  accessToken: mapboxToken,
106317
106327
  visible: false
106328
+ }, {
106329
+ id: "NEW MapBoxStreets",
106330
+ name: "NEW MapBox Streets",
106331
+ url: "https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106332
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106333
+ subdomains: "abcd",
106334
+ accessToken: mapboxToken,
106335
+ visible: false
106318
106336
  }, {
106319
106337
  id: "MapBoxAerial",
106320
106338
  name: "MapBox Aerial",
@@ -106324,40 +106342,74 @@ var config = {
106324
106342
  accessToken: mapboxToken,
106325
106343
  visible: false
106326
106344
  }, {
106327
- id: "MapBoxOutdoor",
106328
- name: "MapBox Outdoor",
106329
- url: "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106345
+ id: "NEW Satellite Streets",
106346
+ name: "NEW Satellite Streets",
106347
+ url: "https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106330
106348
  attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106331
106349
  subdomains: "abcd",
106332
106350
  accessToken: mapboxToken,
106333
106351
  visible: false
106334
106352
  },
106335
106353
  // {
106336
- // id: "StamenToner",
106337
- // name: "Stamen Toner",
106338
- // url: "https://stamen-tiles-{a-d}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
106339
- // attributions:
106340
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106341
- // subdomains: "abcd",
106342
- // minZoom: 0,
106343
- // maxZoom: 20,
106344
- // ext: "png",
106345
- // visible: false
106346
- // },
106347
- // {
106348
- // id: "StamenWatercolor",
106349
- // name: "Stamen Watercolor",
106354
+ // id: "NEW MapBoxAerial",
106355
+ // name: "NEW MapMapBoxAerialBox",
106350
106356
  // url:
106351
- // "https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
106357
+ // "https://api.mapbox.com/styles/v1/usace/standard-satellite/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106352
106358
  // attributions:
106353
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106359
+ // 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106354
106360
  // subdomains: "abcd",
106355
- // minZoom: 1,
106356
- // maxZoom: 16,
106357
- // ext: "png",
106361
+ // accessToken: mapboxToken,
106358
106362
  // visible: false
106359
106363
  // },
106360
106364
  {
106365
+ id: "MapBoxOutdoor",
106366
+ name: "MapBox Outdoor",
106367
+ url: "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106368
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106369
+ subdomains: "abcd",
106370
+ accessToken: mapboxToken,
106371
+ visible: false
106372
+ }, {
106373
+ id: "NEW MapBoxOutdoor",
106374
+ name: "NEW MapBox Outdoor",
106375
+ url: "https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106376
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106377
+ subdomains: "abcd",
106378
+ accessToken: mapboxToken,
106379
+ visible: false
106380
+ }, {
106381
+ id: "NEW Monochrome Light",
106382
+ name: "NEW Monochrome Light",
106383
+ url: "https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106384
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106385
+ subdomains: "abcd",
106386
+ accessToken: mapboxToken,
106387
+ visible: false
106388
+ }, {
106389
+ id: "NEW Monochrome Dark",
106390
+ name: "NEW Monochrome Dark",
106391
+ url: "https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106392
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106393
+ subdomains: "abcd",
106394
+ accessToken: mapboxToken,
106395
+ visible: false
106396
+ }, {
106397
+ id: "NEW Navigation Dark",
106398
+ name: "NEW Navigation Dark",
106399
+ url: "https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106400
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106401
+ subdomains: "abcd",
106402
+ accessToken: mapboxToken,
106403
+ visible: false
106404
+ }, {
106405
+ id: "NEW Navigation Light",
106406
+ name: "NEW Navigation Light",
106407
+ url: "https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106408
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106409
+ subdomains: "abcd",
106410
+ accessToken: mapboxToken,
106411
+ visible: false
106412
+ }, {
106361
106413
  id: "EsriWorldStreetMap",
106362
106414
  name: "ESRI Streetmap",
106363
106415
  url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
@@ -106658,7 +106710,7 @@ var config = {
106658
106710
  };
106659
106711
 
106660
106712
  var name = "@corpsmap/corpsmap";
106661
- var version$1 = "3.2.51";
106713
+ var version$1 = "3.2.53";
106662
106714
  var description = "CorpsMap as React Components";
106663
106715
  var main = "index.js";
106664
106716
  var scripts = {
@@ -136945,7 +136997,6 @@ var bundle$3 = {
136945
136997
  var targetValue = evt.target.value;
136946
136998
  // let logData = store.selectChangeLogItems();
136947
136999
  var logData = store.selectAllChangeLogItems();
136948
- // debugger
136949
137000
  if (targetValue.length > 2) {
136950
137001
  var wkLogData = [];
136951
137002
  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) {
@@ -106229,6 +106239,14 @@ var config = {
106229
106239
  subdomains: "abcd",
106230
106240
  accessToken: mapboxToken,
106231
106241
  visible: false
106242
+ }, {
106243
+ id: "NEW MapBoxStreets",
106244
+ name: "NEW MapBox Streets",
106245
+ url: "https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106246
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106247
+ subdomains: "abcd",
106248
+ accessToken: mapboxToken,
106249
+ visible: false
106232
106250
  }, {
106233
106251
  id: "MapBoxAerial",
106234
106252
  name: "MapBox Aerial",
@@ -106238,40 +106256,74 @@ var config = {
106238
106256
  accessToken: mapboxToken,
106239
106257
  visible: false
106240
106258
  }, {
106241
- id: "MapBoxOutdoor",
106242
- name: "MapBox Outdoor",
106243
- url: "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106259
+ id: "NEW Satellite Streets",
106260
+ name: "NEW Satellite Streets",
106261
+ url: "https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106244
106262
  attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106245
106263
  subdomains: "abcd",
106246
106264
  accessToken: mapboxToken,
106247
106265
  visible: false
106248
106266
  },
106249
106267
  // {
106250
- // id: "StamenToner",
106251
- // name: "Stamen Toner",
106252
- // url: "https://stamen-tiles-{a-d}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
106253
- // attributions:
106254
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106255
- // subdomains: "abcd",
106256
- // minZoom: 0,
106257
- // maxZoom: 20,
106258
- // ext: "png",
106259
- // visible: false
106260
- // },
106261
- // {
106262
- // id: "StamenWatercolor",
106263
- // name: "Stamen Watercolor",
106268
+ // id: "NEW MapBoxAerial",
106269
+ // name: "NEW MapMapBoxAerialBox",
106264
106270
  // url:
106265
- // "https://stamen-tiles-{a-d}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg",
106271
+ // "https://api.mapbox.com/styles/v1/usace/standard-satellite/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106266
106272
  // attributions:
106267
- // 'Map tiles by <a href="https://stamen.com">Stamen Design</a>, <a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106273
+ // 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106268
106274
  // subdomains: "abcd",
106269
- // minZoom: 1,
106270
- // maxZoom: 16,
106271
- // ext: "png",
106275
+ // accessToken: mapboxToken,
106272
106276
  // visible: false
106273
106277
  // },
106274
106278
  {
106279
+ id: "MapBoxOutdoor",
106280
+ name: "MapBox Outdoor",
106281
+ url: "https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106282
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106283
+ subdomains: "abcd",
106284
+ accessToken: mapboxToken,
106285
+ visible: false
106286
+ }, {
106287
+ id: "NEW MapBoxOutdoor",
106288
+ name: "NEW MapBox Outdoor",
106289
+ url: "https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106290
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106291
+ subdomains: "abcd",
106292
+ accessToken: mapboxToken,
106293
+ visible: false
106294
+ }, {
106295
+ id: "NEW Monochrome Light",
106296
+ name: "NEW Monochrome Light",
106297
+ url: "https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106298
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106299
+ subdomains: "abcd",
106300
+ accessToken: mapboxToken,
106301
+ visible: false
106302
+ }, {
106303
+ id: "NEW Monochrome Dark",
106304
+ name: "NEW Monochrome Dark",
106305
+ url: "https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106306
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106307
+ subdomains: "abcd",
106308
+ accessToken: mapboxToken,
106309
+ visible: false
106310
+ }, {
106311
+ id: "NEW Navigation Dark",
106312
+ name: "NEW Navigation Dark",
106313
+ url: "https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106314
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106315
+ subdomains: "abcd",
106316
+ accessToken: mapboxToken,
106317
+ visible: false
106318
+ }, {
106319
+ id: "NEW Navigation Light",
106320
+ name: "NEW Navigation Light",
106321
+ url: "https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",
106322
+ attributions: 'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
106323
+ subdomains: "abcd",
106324
+ accessToken: mapboxToken,
106325
+ visible: false
106326
+ }, {
106275
106327
  id: "EsriWorldStreetMap",
106276
106328
  name: "ESRI Streetmap",
106277
106329
  url: "https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
@@ -106572,7 +106624,7 @@ var config = {
106572
106624
  };
106573
106625
 
106574
106626
  var name = "@corpsmap/corpsmap";
106575
- var version$1 = "3.2.51";
106627
+ var version$1 = "3.2.53";
106576
106628
  var description = "CorpsMap as React Components";
106577
106629
  var main = "index.js";
106578
106630
  var scripts = {
@@ -136859,7 +136911,6 @@ var bundle$3 = {
136859
136911
  var targetValue = evt.target.value;
136860
136912
  // let logData = store.selectChangeLogItems();
136861
136913
  var logData = store.selectAllChangeLogItems();
136862
- // debugger
136863
136914
  if (targetValue.length > 2) {
136864
136915
  var wkLogData = [];
136865
136916
  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.53",
4
4
  "description": "CorpsMap as React Components",
5
5
  "main": "index.js",
6
6
  "scripts": {