map-ol-utils 0.0.41 → 0.0.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/dist/index.cjs CHANGED
@@ -500,28 +500,36 @@ var addMassMarksLayer = (getImgUrlFn) => {
500
500
  if (hasLine) {
501
501
  const vectorLayer = createBusinessLayer(
502
502
  dataList,
503
- vectorConfig || {
504
- key: "line",
505
- isLine: true,
506
- openClick: false,
507
- strokeWeight: 4,
508
- strokeColor: "rgba(29, 235, 255, 0.8)"
509
- }
503
+ Object.assign(
504
+ {},
505
+ {
506
+ key: "line",
507
+ isLine: true,
508
+ openClick: false,
509
+ strokeWeight: 4,
510
+ strokeColor: "rgba(29, 235, 255, 0.8)"
511
+ },
512
+ vectorConfig || {}
513
+ )
510
514
  );
511
515
  instance.addLayer(vectorLayer);
512
516
  }
513
517
  if (hasFace) {
514
518
  const vectorLayer = createBusinessLayer(
515
519
  dataList,
516
- vectorConfig || {
517
- isLine: false,
518
- key: "faceList",
519
- strokeWeight: 1,
520
- openClick: false,
521
- fillColor: "#4247DF",
522
- strokeStyle: "dashed",
523
- strokeColor: "#4247DF"
524
- }
520
+ Object.assign(
521
+ {},
522
+ {
523
+ isLine: false,
524
+ key: "faceList",
525
+ strokeWeight: 1,
526
+ openClick: false,
527
+ fillColor: "#4247DF",
528
+ strokeStyle: "dashed",
529
+ strokeColor: "#4247DF"
530
+ },
531
+ vectorConfig || {}
532
+ )
525
533
  );
526
534
  instance.addLayer(vectorLayer);
527
535
  }
package/dist/index.js CHANGED
@@ -442,28 +442,36 @@ var addMassMarksLayer = (getImgUrlFn) => {
442
442
  if (hasLine) {
443
443
  const vectorLayer = createBusinessLayer(
444
444
  dataList,
445
- vectorConfig || {
446
- key: "line",
447
- isLine: true,
448
- openClick: false,
449
- strokeWeight: 4,
450
- strokeColor: "rgba(29, 235, 255, 0.8)"
451
- }
445
+ Object.assign(
446
+ {},
447
+ {
448
+ key: "line",
449
+ isLine: true,
450
+ openClick: false,
451
+ strokeWeight: 4,
452
+ strokeColor: "rgba(29, 235, 255, 0.8)"
453
+ },
454
+ vectorConfig || {}
455
+ )
452
456
  );
453
457
  instance.addLayer(vectorLayer);
454
458
  }
455
459
  if (hasFace) {
456
460
  const vectorLayer = createBusinessLayer(
457
461
  dataList,
458
- vectorConfig || {
459
- isLine: false,
460
- key: "faceList",
461
- strokeWeight: 1,
462
- openClick: false,
463
- fillColor: "#4247DF",
464
- strokeStyle: "dashed",
465
- strokeColor: "#4247DF"
466
- }
462
+ Object.assign(
463
+ {},
464
+ {
465
+ isLine: false,
466
+ key: "faceList",
467
+ strokeWeight: 1,
468
+ openClick: false,
469
+ fillColor: "#4247DF",
470
+ strokeStyle: "dashed",
471
+ strokeColor: "#4247DF"
472
+ },
473
+ vectorConfig || {}
474
+ )
467
475
  );
468
476
  instance.addLayer(vectorLayer);
469
477
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "map-ol-utils",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "description": "Openlayers utils library",
6
6
  "files": [