@mapcatch/util 2.0.4 → 2.0.5

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.
@@ -6596,7 +6596,9 @@ const layerGroups = [
6596
6596
  opacity: 1,
6597
6597
  class: "image2d",
6598
6598
  metadata: {
6599
- folder: "dom_tiles"
6599
+ folder: "dom_tiles",
6600
+ show_annotations: !0,
6601
+ show_annotation_labels: !0
6600
6602
  }
6601
6603
  },
6602
6604
  {
@@ -6607,7 +6609,11 @@ const layerGroups = [
6607
6609
  opacity: 1,
6608
6610
  class: "tmp",
6609
6611
  metadata: {
6610
- folder: "tem_tiles"
6612
+ folder: "tem_tiles",
6613
+ borderStyle: "transparent",
6614
+ colorType: "turbo",
6615
+ show_annotations: !0,
6616
+ show_annotation_labels: !0
6611
6617
  }
6612
6618
  },
6613
6619
  {
@@ -6620,7 +6626,9 @@ const layerGroups = [
6620
6626
  metadata: {
6621
6627
  folder: "dsm_tiles",
6622
6628
  borderStyle: "transparent",
6623
- colorType: "turbo"
6629
+ colorType: "turbo",
6630
+ show_annotations: !0,
6631
+ show_annotation_labels: !0
6624
6632
  }
6625
6633
  },
6626
6634
  {
@@ -6648,22 +6656,24 @@ const layerGroups = [
6648
6656
  class: "photos"
6649
6657
  },
6650
6658
  {
6651
- type: "bndvi",
6652
- name: "\u690D\u88AB\u6307\u6570\uFF08BNDVI\uFF09",
6659
+ type: "ndvi",
6660
+ name: "NDVI",
6653
6661
  group: "index",
6654
6662
  visible: !0,
6655
6663
  opacity: 1,
6656
- class: "bndvi",
6664
+ class: "ndvi",
6657
6665
  metadata: {
6658
- folder: "bndvi_tiles",
6666
+ folder: "ndvi_tiles",
6659
6667
  borderStyle: "transparent",
6660
6668
  colorType: "red-green",
6661
- bands: ["NIR", "Blue"]
6669
+ bands: ["NIR", "Red"],
6670
+ show_annotations: !0,
6671
+ show_annotation_labels: !0
6662
6672
  }
6663
6673
  },
6664
6674
  {
6665
6675
  type: "gndvi",
6666
- name: "\u690D\u88AB\u6307\u6570\uFF08GNDVI\uFF09",
6676
+ name: "GNDVI",
6667
6677
  group: "index",
6668
6678
  visible: !0,
6669
6679
  opacity: 1,
@@ -6671,13 +6681,15 @@ const layerGroups = [
6671
6681
  metadata: {
6672
6682
  folder: "gndvi_tiles",
6673
6683
  borderStyle: "transparent",
6674
- colorType: "red-green",
6675
- bands: ["NIR", "Green"]
6684
+ colorType: "glow",
6685
+ bands: ["NIR", "Green"],
6686
+ show_annotations: !0,
6687
+ show_annotation_labels: !0
6676
6688
  }
6677
6689
  },
6678
6690
  {
6679
6691
  type: "lci",
6680
- name: "\u690D\u88AB\u6307\u6570\uFF08LCI\uFF09",
6692
+ name: "LCI",
6681
6693
  group: "index",
6682
6694
  visible: !0,
6683
6695
  opacity: 1,
@@ -6685,27 +6697,15 @@ const layerGroups = [
6685
6697
  metadata: {
6686
6698
  folder: "lci_tiles",
6687
6699
  borderStyle: "transparent",
6688
- colorType: "glow",
6689
- bands: ["NIR", "RedEdge", "Red"]
6690
- }
6691
- },
6692
- {
6693
- type: "mcari",
6694
- name: "\u690D\u88AB\u6307\u6570\uFF08MCARI\uFF09",
6695
- group: "index",
6696
- visible: !0,
6697
- opacity: 1,
6698
- class: "mcari",
6699
- metadata: {
6700
- folder: "mcari_tiles",
6701
- borderStyle: "transparent",
6702
6700
  colorType: "turbo",
6703
- bands: ["NIR", "Red", "Green"]
6701
+ bands: ["NIR", "RedEdge", "Red"],
6702
+ show_annotations: !0,
6703
+ show_annotation_labels: !0
6704
6704
  }
6705
6705
  },
6706
6706
  {
6707
6707
  type: "ndre",
6708
- name: "\u690D\u88AB\u6307\u6570\uFF08NDRE\uFF09",
6708
+ name: "NDRE",
6709
6709
  group: "index",
6710
6710
  visible: !0,
6711
6711
  opacity: 1,
@@ -6713,78 +6713,26 @@ const layerGroups = [
6713
6713
  metadata: {
6714
6714
  folder: "ndre_tiles",
6715
6715
  borderStyle: "transparent",
6716
- colorType: "red-green",
6717
- bands: ["NIR", "RedEdge"]
6716
+ colorType: "gray",
6717
+ bands: ["NIR", "RedEdge"],
6718
+ show_annotations: !0,
6719
+ show_annotation_labels: !0
6718
6720
  }
6719
6721
  },
6720
6722
  {
6721
- type: "ndvi",
6722
- name: "\u690D\u88AB\u6307\u6570\uFF08NDVI\uFF09",
6723
+ type: "osavi",
6724
+ name: "OSAVI",
6723
6725
  group: "index",
6724
6726
  visible: !0,
6725
6727
  opacity: 1,
6726
- class: "ndvi",
6728
+ class: "osavi",
6727
6729
  metadata: {
6728
- folder: "ndvi_tiles",
6730
+ folder: "osavi_tiles",
6729
6731
  borderStyle: "transparent",
6730
6732
  colorType: "red-green",
6731
- bands: ["NIR", "Red"]
6732
- }
6733
- },
6734
- {
6735
- type: "sipi2",
6736
- name: "\u690D\u88AB\u6307\u6570\uFF08SIPI2\uFF09",
6737
- group: "index",
6738
- visible: !0,
6739
- opacity: 1,
6740
- class: "sipi2",
6741
- metadata: {
6742
- folder: "sipi2_tiles",
6743
- borderStyle: "transparent",
6744
- colorType: "glow",
6745
- bands: ["NIR", "Green"]
6746
- }
6747
- },
6748
- {
6749
- type: "tgi",
6750
- name: "\u690D\u88AB\u6307\u6570\uFF08TGI\uFF09",
6751
- group: "index",
6752
- visible: !0,
6753
- opacity: 1,
6754
- class: "tgi",
6755
- metadata: {
6756
- folder: "tgi_tiles",
6757
- borderStyle: "transparent",
6758
- colorType: "turbo",
6759
- bands: ["Red", "Green", "Blue"]
6760
- }
6761
- },
6762
- {
6763
- type: "vari",
6764
- name: "\u690D\u88AB\u6307\u6570\uFF08VARI\uFF09",
6765
- group: "index",
6766
- visible: !0,
6767
- opacity: 1,
6768
- class: "vari",
6769
- metadata: {
6770
- folder: "vari_tiles",
6771
- borderStyle: "transparent",
6772
- colorType: "red-green",
6773
- bands: ["Red", "Green", "Blue"]
6774
- }
6775
- },
6776
- {
6777
- type: "ndmi",
6778
- name: "\u690D\u88AB\u6307\u6570\uFF08NDMI\uFF09",
6779
- group: "index",
6780
- visible: !0,
6781
- opacity: 1,
6782
- class: "ndmi",
6783
- metadata: {
6784
- folder: "ndmi_tiles",
6785
- borderStyle: "transparent",
6786
- colorType: "glow",
6787
- bands: ["NIR", "SWIR_1613", "Blue"]
6733
+ bands: ["NIR", "Red"],
6734
+ show_annotations: !0,
6735
+ show_annotation_labels: !0
6788
6736
  }
6789
6737
  }
6790
6738
  ], layerFolders = {
@@ -55774,14 +55722,20 @@ function getLineLabelFeature(t) {
55774
55722
  return n.properties = t.properties, n.properties.angle = H, n.geometry.coordinates.push(((c[0][2] || 0) + (c[1][2] || 0)) / 2), n;
55775
55723
  }
55776
55724
  function addIcons2Map(t, o) {
55777
- o.forEach(({ url: R, sdf: c }) => {
55778
- t.loadImage(R, (h, d) => {
55779
- let H = R.split("/").pop().split(".")[0];
55780
- if (!t.hasImage(H)) {
55781
- if (h)
55782
- throw h;
55783
- t.addImage(H, d, { sdf: c });
55784
- }
55725
+ return new Promise((R, c) => {
55726
+ let h = o.length;
55727
+ o.forEach(({ url: d, sdf: H }) => {
55728
+ t.loadImage(d, (n, D) => {
55729
+ h--;
55730
+ let j = d.split("/").pop().split(".")[0];
55731
+ if (!t.hasImage(j)) {
55732
+ if (n) {
55733
+ c(n);
55734
+ return;
55735
+ }
55736
+ t.addImage(j, D, { sdf: H }), h <= 0 && R(!0);
55737
+ }
55738
+ });
55785
55739
  });
55786
55740
  });
55787
55741
  }