mapicgc-gl-js 0.0.62 → 0.0.64

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/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  # MapICGC GL JS
15
15
 
16
16
 
17
- > 🌠 __MAPLIBRE GL JS version:__ 4.1.2
17
+ > 🌠 __Based on MapLibre GL JS version:__ 4.1.3
18
18
 
19
19
  The MapICGC GL JS library builds upon the open-source library [**MapLibre GL JS**](https://github.com/maplibre/maplibre-gl-js), exposing its existing capabilities while introducing new features specific to the MapICGC ecosystem. This library is tailored to seamlessly integrate with the MapICGC Cloud service, offering a comprehensive set of data to enhance web mapping experiences, including vector tiles, satellite raster tiles, DEM with Terrain RGB, and customizable styles with an editor.
20
20
 
@@ -830,6 +830,126 @@ background: #d4d4d4;
830
830
  margin-right: 5px;
831
831
  }
832
832
 
833
+
834
+
835
+
836
+
837
+
838
+
839
+ #menu-group {
840
+ font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
841
+ font-weight: 600;
842
+ position: absolute;
843
+ top: 10px;
844
+ left: 10px;
845
+ z-index: 1;
846
+ border-radius: 3px;
847
+ width: auto;
848
+ color: #fff;
849
+ overflow-y: auto;
850
+ max-height: 500px;
851
+ overflow-x: hidden;
852
+ }
853
+ #menu-group::-webkit-scrollbar {
854
+ width: 8px; /* Tamaño del scroll en vertical */
855
+ height: 8px; /* Tamaño del scroll en horizontal */
856
+ display: block; /* Ocultar scroll */
857
+ }
858
+
859
+ /* Ponemos un color de fondo y redondeamos las esquinas del thumb */
860
+ #menu-group::-webkit-scrollbar-thumb {
861
+ background: #ccc;
862
+ border-radius: 4px;
863
+ }
864
+
865
+ /* Cambiamos el fondo y agregamos una sombra cuando esté en hover */
866
+ #menu-group::-webkit-scrollbar-thumb:hover {
867
+ background: #daac56;
868
+ box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
869
+ }
870
+
871
+ /* Cambiamos el fondo cuando esté en active */
872
+ #menu-group::-webkit-scrollbar-thumb:active {
873
+ background-color: #d8b97f;
874
+ }
875
+ /* Ponemos un color de fondo y redondeamos las esquinas del track */
876
+ #menu-group::-webkit-scrollbar-track {
877
+ background: #e1e1e1;
878
+ border-radius: 4px;
879
+ }
880
+
881
+ /* Cambiamos el fondo cuando esté en active o hover */
882
+ #menu-group::-webkit-scrollbar-track:hover,
883
+ #menu-group::-webkit-scrollbar-track:active {
884
+ background: #d4d4d4;
885
+ }
886
+
887
+
888
+
889
+
890
+ #menu-group input[type='checkbox']:first-child + label {
891
+ border-radius: 3px 3px 0 0;
892
+ }
893
+
894
+ #menu-group label:last-child {
895
+ border-radius: 0 0 3px 3px;
896
+ border: none;
897
+ }
898
+
899
+ #menu-group input[type='checkbox'] {
900
+ display: none;
901
+ }
902
+
903
+ #menu-group input[type='checkbox'] + label {
904
+ background-color: #798e9f;
905
+ display: block;
906
+ cursor: pointer;
907
+ padding: 7px;
908
+ border-bottom: 1px solid rgba(0, 0, 0, 0.25);
909
+ }
910
+
911
+ #menu-group input[type='checkbox'] + label {
912
+ background-color: #798e9f;
913
+ text-transform: capitalize;
914
+ }
915
+
916
+ #menu-group input[type='checkbox'] + label:hover,
917
+ #menu-group input[type='checkbox']:checked + label {
918
+ background-color: #798e9f;
919
+ }
920
+
921
+ #menu-group input[type='checkbox']:checked + label:before {
922
+ content: '✔';
923
+ margin-right: 5px;
924
+ }
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
833
953
 
834
954
 
835
955
  .maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
@@ -1449,6 +1569,9 @@ h4::selection {
1449
1569
  }
1450
1570
  }
1451
1571
 
1572
+
1573
+
1574
+
1452
1575
  /* Media queries*/
1453
1576
  @media screen and (min-width: 640px) {
1454
1577
  .maplibregl-ctrl-geocoder.maplibregl-ctrl-geocoder--collapsed {
@@ -1528,9 +1651,9 @@ h4::selection {
1528
1651
  cursor: grab;
1529
1652
  };
1530
1653
  #toggleLegend {
1531
- position: absolute;
1532
- top: 20px;
1533
- right: 20px;
1654
+ position: absolute !important;
1655
+ top: 20px !important;
1656
+ right: 20px !important;
1534
1657
  background-color: #00ab2d;
1535
1658
  color: white;
1536
1659
  width: 40px;
@@ -1603,3 +1726,90 @@ h4::selection {
1603
1726
 
1604
1727
 
1605
1728
  }
1729
+
1730
+ .maplibregl-legend-list {
1731
+ display: none
1732
+ }
1733
+
1734
+ .maplibregl-legend-list {
1735
+ overflow-y: scroll;
1736
+ max-height: 70vh;
1737
+ margin: .3em
1738
+ }
1739
+
1740
+ .maplibregl-ctrl-group .maplibregl-legend-list button {
1741
+ background: none;
1742
+ border: none;
1743
+ cursor: pointer;
1744
+ display: block;
1745
+ height: auto
1746
+ }
1747
+
1748
+ .maplibregl-legend-list button.active {
1749
+ font-weight: 700
1750
+ }
1751
+
1752
+ .maplibregl-legend-list button:hover {
1753
+ background-color: #0000000d
1754
+ }
1755
+
1756
+ .maplibregl-legend-list button+button {
1757
+ border-top: 1px solid #ddd
1758
+ }
1759
+
1760
+ .maplibregl-legend-switcher {
1761
+ background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEXklEQVR4nO1bW28bRRReiSDKG6V/gV4kHnkCiqACnmkp8EThgZv6I9BGFTxWKNg+35md2VhBDWnclgZKIVJQq0ioQKHgRoISAW1p6WtbUCQaOc6iY2zXjt1kfNmLvfmkI1manfX5vrmdmTnrOJsIFxOZzDYf2KeBUQ2e0oQLGnzNgG9qwqpY5Tf4WrVsSp6VOlLXGUQopXZp4H0D/GTAZQMOurSyBv9oiN8zRDudJEMpdb8m9boh/q4HwuuaJnzrA6+5rjviJIz4QU18JSziLUa4rIF3YhfCI3pKExYiI95qF32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727wU3wv/Hazgkty+9xA+V9VzeAYx2/eFD3CCirXIGLxcRBpg04B80+Krcz1eP4svVj6evCll5Rp6VOvkP8g/F7b8z7PgPslNWT+ShSSkAAAAASUVORK5CYII=');
1762
+ background-position: center;
1763
+ background-repeat: no-repeat;
1764
+ background-size: 70%
1765
+ }
1766
+
1767
+ table.legend-table {
1768
+ border-collapse: collapse;
1769
+ margin: 0 auto
1770
+ }
1771
+
1772
+ td.legend-table-td,th.legend-table-th {
1773
+ border: 1px solid #fff;
1774
+ margin: 10px;
1775
+ padding: 2px;
1776
+ text-align: left
1777
+ }
1778
+
1779
+ .maplibregl-legend-close-button {
1780
+ position: absolute;
1781
+ right: 0;
1782
+ top: 0;
1783
+ border: 0;
1784
+ border-radius: 0 3px 0 0;
1785
+ cursor: pointer;
1786
+ background-color: #0000;
1787
+ font-size: 13px;
1788
+ padding-top: 5px;
1789
+ padding-right: 5px
1790
+ }
1791
+
1792
+ .maplibregl-legend-title-label {
1793
+ font-size: 14px;
1794
+ font-weight: 700;
1795
+ margin: 5px;
1796
+ color: #1c1c1c
1797
+ }
1798
+
1799
+ .maplibregl-legend-onlyRendered-checkbox {
1800
+ margin: 5px 5px 5px .5em
1801
+ }
1802
+
1803
+ .maplibregl-legend-onlyRendered-label {
1804
+ font-size: 14px;
1805
+ margin: 5px;
1806
+ color: #1c1c1c
1807
+ }
1808
+
1809
+ td.legend-table-td>svg {
1810
+ height: 17px
1811
+ }
1812
+
1813
+ td.legend-table-td>label {
1814
+ color: #1c1c1c
1815
+ }