@minmaps-dev/mm-web-sdk 1.0.0-rc.34 → 1.0.0-rc.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minmaps-dev/mm-web-sdk",
3
- "version": "1.0.0-rc.34",
3
+ "version": "1.0.0-rc.35",
4
4
  "description": "MinuteMaps indoor mapping SDK for MapLibre GL - render venues, floors, POIs, and wayfinding routes",
5
5
  "license": "MIT",
6
6
  "author": "MTS LLC",
@@ -84,7 +84,7 @@
84
84
  "typescript": "^5",
85
85
  "vitest": "^2",
86
86
  "@vitest/coverage-v8": "^2",
87
- "@minmaps-dev/material-icon-set": "0.2.0-rc.2"
87
+ "@minmaps-dev/material-icon-set": "0.2.0-rc.3"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "rimraf dist && rollup -c",
@@ -518,7 +518,7 @@
518
518
  "filter": [
519
519
  "in",
520
520
  ["get", "kind"],
521
- ["literal", ["place_of_worship", "fire_station", "post_office", "library", "townhall", "school", "hospital"]]
521
+ ["literal", ["place_of_worship", "fire_station", "post_office", "library", "townhall", "school"]]
522
522
  ],
523
523
  "layout": {
524
524
  "symbol-sort-key": 25,
@@ -635,19 +635,19 @@
635
635
  "minzoom": 16.5,
636
636
  "filter": ["==", ["get", "featureType"], "Pattern-Water"],
637
637
  "paint": {
638
- "fill-color": "#cfe1ec",
639
- "fill-opacity": 0.6
638
+ "fill-color": "#cfe1ec"
639
+
640
640
  }
641
641
  },
642
642
  {
643
643
  "id": "pattern-grass",
644
644
  "type": "fill",
645
645
  "source": "indoor-data",
646
- "minzoom": 16.5,
646
+
647
647
  "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
648
648
  "paint": {
649
- "fill-color": "#d2e0c6",
650
- "fill-opacity": 0.5
649
+ "fill-color": "#B6D0AE",
650
+ "fill-opacity": 1
651
651
  }
652
652
  },
653
653
  {
@@ -668,8 +668,7 @@
668
668
  "minzoom": 16.5,
669
669
  "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
670
670
  "paint": {
671
- "fill-color": "#E0E0E0",
672
- "fill-opacity": 0.6
671
+ "fill-color": "#9E9E9E"
673
672
  }
674
673
  },
675
674
 
@@ -689,7 +688,7 @@
689
688
  "id": "parking-lots",
690
689
  "type": "fill",
691
690
  "source": "indoor-data",
692
- "minzoom": 16.5,
691
+
693
692
  "filter": ["==", ["get", "featureType"], "Parking-Lots"],
694
693
  "paint": {
695
694
  "fill-color": "#adadad",
@@ -716,7 +715,7 @@
716
715
  "minzoom": 16.5,
717
716
  "filter": ["==", ["get", "featureType"], "Boundary"],
718
717
  "paint": {
719
- "fill-color": "#edeef1",
718
+ "fill-color": "#162e51",
720
719
  "fill-opacity": 1
721
720
  }
722
721
  },
@@ -732,8 +731,8 @@
732
731
  "interpolate",
733
732
  ["linear"],
734
733
  ["zoom"],
735
- 15.8, 0,
736
- 16.5, 1
734
+ 15.8, 1,
735
+ 16.5, 0
737
736
  ]
738
737
  }
739
738
  },
@@ -748,7 +747,7 @@
748
747
  ["==", ["get", "featureType"], "Corridor"]
749
748
  ],
750
749
  "paint": {
751
- "fill-color": "#f0f0f0"
750
+ "fill-color": "#f0f0f0"
752
751
  }
753
752
  },
754
753
 
@@ -876,8 +875,8 @@
876
875
  "minzoom": 16.5,
877
876
  "filter": ["==", ["get", "featureType"], "Obstacles"],
878
877
  "paint": {
879
- "fill-color": "#E8E9ED",
880
- "fill-opacity": 0.85
878
+ "fill-color": "#e8e9ed",
879
+ "fill-opacity": 1
881
880
  }
882
881
  },
883
882
  {
@@ -891,7 +890,7 @@
891
890
  "line-cap": "round"
892
891
  },
893
892
  "paint": {
894
- "line-color": "#B0B1B5",
893
+ "line-color": "#98999D",
895
894
  "line-width": [
896
895
  "interpolate",
897
896
  ["linear"],
@@ -903,7 +902,7 @@
903
902
  20,
904
903
  1.2
905
904
  ],
906
- "line-opacity": 0.9
905
+ "line-opacity": 1
907
906
  }
908
907
  },
909
908
 
@@ -918,7 +917,7 @@
918
917
  ["literal", ["Escalators", "Stairs", "Elevators"]]
919
918
  ],
920
919
  "paint": {
921
- "fill-color": "#a9aeb1",
920
+ "fill-color": "#112f4e",
922
921
  "fill-opacity": 1
923
922
  }
924
923
  },
@@ -937,7 +936,7 @@
937
936
  "line-cap": "round"
938
937
  },
939
938
  "paint": {
940
- "line-color": "#6f7780",
939
+ "line-color": "#162e51",
941
940
  "line-width": [
942
941
  "interpolate",
943
942
  ["linear"],
@@ -1001,7 +1000,7 @@
1001
1000
  ["==", ["get", "featureType"], "Corridor"]
1002
1001
  ],
1003
1002
  "paint": {
1004
- "line-color": "#c6cace",
1003
+ "line-color": "#343a40",
1005
1004
  "line-width": [
1006
1005
  "interpolate",
1007
1006
  ["linear"],
@@ -1542,61 +1541,6 @@
1542
1541
  }
1543
1542
  },
1544
1543
 
1545
- {
1546
- "id": "poi-destination-circles",
1547
- "type": "circle",
1548
- "source": "poi-data",
1549
- "filter": ["==", ["get", "poiType"], "destination"],
1550
- "minzoom": 16.5,
1551
- "paint": {
1552
- "circle-radius": [
1553
- "interpolate", ["linear"], ["zoom"],
1554
- 14, 3,
1555
- 16, 5,
1556
- 18, 7,
1557
- 20, 10
1558
- ],
1559
- "circle-color": "#ffffff",
1560
- "circle-stroke-width": 3,
1561
- "circle-stroke-color": "#162e51",
1562
- "circle-opacity": 1
1563
- }
1564
- },
1565
-
1566
- {
1567
- "id": "poi-destination-labels",
1568
- "type": "symbol",
1569
- "source": "poi-data",
1570
- "filter": [
1571
- "all",
1572
- ["==", ["get", "poiType"], "destination"],
1573
- ["==", ["get", "showLabel"], true]
1574
- ],
1575
- "minzoom": 16.5,
1576
- "layout": {
1577
- "symbol-sort-key": 0,
1578
- "text-field": ["get", "name"],
1579
- "text-size": [
1580
- "interpolate", ["linear"], ["zoom"],
1581
- 16.5, 18,
1582
- 18, 20,
1583
- 20, 23
1584
- ],
1585
- "text-variable-anchor-offset": ["top", [0, 0.9], "right", [-0.9, 0], "bottom", [0, -0.9], "left", [0.9, 0]],
1586
- "text-variable-anchor": ["top", "right" , "bottom", "left"],
1587
- "text-font": ["Noto Sans Bold"],
1588
- "text-max-width": 12,
1589
- "text-allow-overlap": false,
1590
- "text-padding": 4,
1591
- "text-rotation-alignment": "viewport"
1592
- },
1593
- "paint": {
1594
- "text-color": "#242930",
1595
- "text-halo-color": "#FFFFFF",
1596
- "text-halo-width": 2,
1597
- "text-halo-blur": 0
1598
- }
1599
- },
1600
1544
  {
1601
1545
  "id": "map-labels",
1602
1546
  "type": "symbol",
@@ -1605,32 +1549,30 @@
1605
1549
  "filter": ["!", ["in", "Building", ["get", "name"]]],
1606
1550
  "layout": {
1607
1551
  "symbol-sort-key": 10,
1608
- "icon-image": "map-label-bg",
1609
- "icon-text-fit": "both",
1610
- "icon-text-fit-padding": [2, 2, 2, 2],
1611
- "icon-allow-overlap": false,
1612
- "icon-ignore-placement": false,
1613
1552
  "text-field": ["get", "name"],
1614
1553
  "text-size": [
1615
1554
  "interpolate", ["linear"], ["zoom"],
1616
- 15.5, 13,
1617
- 16.5, 16,
1618
- 18, 19,
1619
- 20, 22
1555
+ 15.5, 12,
1556
+ 16.5, 15,
1557
+ 18, 18,
1558
+ 20, 20
1620
1559
  ],
1621
1560
  "text-font": ["Noto Sans Bold"],
1622
1561
  "text-letter-spacing": 0.04,
1623
1562
  "text-max-width": 10,
1624
1563
  "text-anchor": "center",
1625
-
1564
+ "text-rotate": ["get", "rotation"],
1626
1565
  "text-rotation-alignment": "viewport",
1627
1566
  "text-allow-overlap": false,
1628
1567
  "text-padding": 4
1629
1568
  },
1630
1569
  "paint": {
1631
- "text-color": "#ffffff"
1570
+ "text-color": "#3d4551",
1571
+ "text-halo-color": "#FFFFFF",
1572
+ "text-halo-width": 1.4,
1573
+ "text-halo-blur": 0.5
1632
1574
  }
1633
- },
1575
+ },
1634
1576
  {
1635
1577
  "id": "map-labels-buildings",
1636
1578
  "type": "symbol",
@@ -1670,7 +1612,7 @@
1670
1612
  "text-padding": 4
1671
1613
  },
1672
1614
  "paint": {
1673
- "text-color": "#ffffff"
1615
+ "text-color": "#fffffe"
1674
1616
  }
1675
1617
  },
1676
1618
 
@@ -1685,18 +1627,18 @@
1685
1627
  "icon-image": ["get", "iconId"],
1686
1628
  "icon-size": [
1687
1629
  "interpolate", ["exponential", 1.3], ["zoom"],
1688
- 14, 0.28,
1689
- 16, 0.4,
1690
- 18, 0.58,
1691
- 20, 0.85,
1692
- 22, 1.2
1630
+ 14, 0.18,
1631
+ 16, 0.3,
1632
+ 18, 0.48,
1633
+ 20, 0.5,
1634
+ 22, 0.85
1693
1635
  ],
1694
1636
  "icon-allow-overlap": false,
1695
1637
  "icon-padding": [
1696
1638
  "interpolate", ["linear"], ["zoom"],
1697
- 15, 8,
1698
- 17, 4,
1699
- 19, 2
1639
+ 15, 6,
1640
+ 17, 2,
1641
+ 19, 1
1700
1642
  ],
1701
1643
  "icon-optional": false,
1702
1644
  "icon-rotation-alignment": "viewport",
@@ -1739,11 +1681,11 @@
1739
1681
  "icon-image": ["get", "iconId"],
1740
1682
  "icon-size": [
1741
1683
  "interpolate", ["exponential", 1.3], ["zoom"],
1742
- 14, 0.28,
1743
- 16, 0.4,
1744
- 18, 0.58,
1745
- 20, 0.85,
1746
- 22, 1.2
1684
+ 14, 0.18,
1685
+ 16, 0.3,
1686
+ 18, 0.48,
1687
+ 20, 0.5,
1688
+ 22, 0.85
1747
1689
  ],
1748
1690
  "icon-allow-overlap": false,
1749
1691
  "icon-padding": [
@@ -1793,11 +1735,11 @@
1793
1735
  "icon-image": ["get", "iconId"],
1794
1736
  "icon-size": [
1795
1737
  "interpolate", ["exponential", 1.3], ["zoom"],
1796
- 14, 0.28,
1797
- 16, 0.4,
1798
- 18, 0.58,
1799
- 20, 0.85,
1800
- 22, 1.2
1738
+ 14, 0.18,
1739
+ 16, 0.3,
1740
+ 18, 0.48,
1741
+ 20, 0.5,
1742
+ 22, 0.85
1801
1743
  ],
1802
1744
  "icon-allow-overlap": false,
1803
1745
  "icon-padding": [
@@ -1847,11 +1789,65 @@
1847
1789
  "icon-image": ["get", "iconId"],
1848
1790
  "icon-size": [
1849
1791
  "interpolate", ["exponential", 1.3], ["zoom"],
1850
- 14, 0.28,
1851
- 16, 0.4,
1852
- 18, 0.58,
1853
- 20, 0.85,
1854
- 22, 1.2
1792
+ 14, 0.18,
1793
+ 16, 0.3,
1794
+ 18, 0.48,
1795
+ 20, 0.5,
1796
+ 22, 0.85
1797
+ ],
1798
+ "icon-allow-overlap": false,
1799
+ "icon-padding": [
1800
+ "interpolate", ["linear"], ["zoom"],
1801
+ 15, 8,
1802
+ 17, 4,
1803
+ 19, 2
1804
+ ],
1805
+ "icon-optional": false,
1806
+ "icon-rotation-alignment": "viewport",
1807
+ "icon-pitch-alignment": "viewport",
1808
+
1809
+ "text-field": ["get", "name"],
1810
+ "text-size": [
1811
+ "interpolate", ["linear"], ["zoom"],
1812
+ 16, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 17],
1813
+ 19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
1814
+ 20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
1815
+ ],
1816
+ "text-offset": [0, 1.3],
1817
+ "text-anchor": "top",
1818
+ "text-optional": true,
1819
+ "text-padding": 4,
1820
+ "text-font": ["Noto Sans Bold"],
1821
+ "text-rotation-alignment": "viewport"
1822
+ },
1823
+ "paint": {
1824
+ "icon-halo-color": "#FFFFFF",
1825
+ "icon-halo-width": 1.5,
1826
+ "icon-halo-blur": 0.5,
1827
+ "text-color": "#242930",
1828
+ "text-halo-color": "#FFFFFF",
1829
+ "text-halo-width": 1.5,
1830
+ "text-halo-blur": 1,
1831
+ "icon-translate": [0, -20],
1832
+ "icon-translate-anchor": "viewport"
1833
+ }
1834
+ },
1835
+ {
1836
+ "id": "poi-information-icons",
1837
+ "type": "symbol",
1838
+ "source": "poi-data",
1839
+ "filter": ["==", ["get", "amenityCategory"], "information"],
1840
+ "minzoom": 16.5,
1841
+ "layout": {
1842
+ "symbol-sort-key": ["get", "rank"],
1843
+ "icon-image": ["get", "iconId"],
1844
+ "icon-size": [
1845
+ "interpolate", ["exponential", 1.3], ["zoom"],
1846
+ 14, 0.18,
1847
+ 16, 0.3,
1848
+ 18, 0.48,
1849
+ 20, 0.5,
1850
+ 22, 0.85
1855
1851
  ],
1856
1852
  "icon-allow-overlap": false,
1857
1853
  "icon-padding": [
@@ -1905,11 +1901,11 @@
1905
1901
  "icon-image": ["get", "iconId"],
1906
1902
  "icon-size": [
1907
1903
  "interpolate", ["exponential", 1.3], ["zoom"],
1908
- 14, 0.28,
1909
- 16, 0.4,
1910
- 18, 0.58,
1911
- 20, 0.85,
1912
- 22, 1.2
1904
+ 14, 0.18,
1905
+ 16, 0.3,
1906
+ 18, 0.48,
1907
+ 20, 0.5,
1908
+ 22, 0.85
1913
1909
  ],
1914
1910
  "icon-allow-overlap": false,
1915
1911
  "icon-padding": [
@@ -1948,6 +1944,111 @@
1948
1944
  "icon-translate-anchor": "viewport"
1949
1945
  }
1950
1946
  },
1947
+ {
1948
+ "id": "poi-restroom-group-icons",
1949
+ "type": "symbol",
1950
+ "source": "restroom-group-data",
1951
+ "minzoom": 16.5,
1952
+ "layout": {
1953
+ "symbol-sort-key": 0,
1954
+ "icon-image": "material-wc",
1955
+ "icon-size": [
1956
+ "interpolate", ["exponential", 1.3], ["zoom"],
1957
+ 14, 0.18,
1958
+ 16, 0.3,
1959
+ 18, 0.48,
1960
+ 20, 0.5,
1961
+ 22, 0.85
1962
+ ],
1963
+ "icon-allow-overlap": false,
1964
+ "icon-padding": [
1965
+ "interpolate", ["linear"], ["zoom"],
1966
+ 15, 8,
1967
+ 17, 4,
1968
+ 19, 2
1969
+ ],
1970
+ "icon-optional": false,
1971
+ "icon-rotation-alignment": "viewport",
1972
+ "icon-pitch-alignment": "viewport"
1973
+ },
1974
+ "paint": {
1975
+ "icon-halo-color": "#FFFFFF",
1976
+ "icon-halo-width": 1.5,
1977
+ "icon-halo-blur": 0.5,
1978
+ "icon-translate": [0, -20],
1979
+ "icon-translate-anchor": "viewport"
1980
+ }
1981
+ },
1982
+ {
1983
+ "id": "poi-destination-labels",
1984
+ "type": "symbol",
1985
+ "source": "poi-data",
1986
+ "filter": [
1987
+ "all",
1988
+ ["==", ["get", "poiType"], "destination"],
1989
+ ["==", ["get", "showLabel"], true]
1990
+ ],
1991
+
1992
+ "layout": {
1993
+ "symbol-sort-key": 0,
1994
+ "icon-image": "destination-dot",
1995
+ "icon-size": [
1996
+ "interpolate", ["linear"], ["zoom"],
1997
+ 14, 0.1,
1998
+ 16, 0.3,
1999
+ 18, 0.5,
2000
+ 20, 0.8
2001
+ ],
2002
+ "icon-overlap": "cooperative",
2003
+ "icon-ignore-placement": false,
2004
+ "icon-padding": 0,
2005
+ "icon-optional": false,
2006
+ "icon-rotation-alignment": "viewport",
2007
+ "icon-pitch-alignment": "viewport",
2008
+ "text-field": ["get", "name"],
2009
+ "text-size": 16,
2010
+ "text-variable-anchor-offset": ["top", [0, 0.8], "right", [-0.8, 0], "bottom", [0, -0.8], "left", [0.8, 0]],
2011
+ "text-variable-anchor": ["top", "right" , "bottom", "left"],
2012
+ "text-font": ["Noto Sans Bold"],
2013
+ "text-max-width": 12,
2014
+ "text-overlap": "never",
2015
+ "text-padding": 4,
2016
+ "text-optional": true,
2017
+ "text-rotation-alignment": "viewport"
2018
+ },
2019
+ "paint": {
2020
+ "text-color": "#FFFFFF",
2021
+ "text-halo-color": "#242930",
2022
+ "text-halo-width": 2,
2023
+ "text-halo-blur": 0
2024
+ }
2025
+ },
2026
+ {
2027
+ "id": "poi-destination-circles",
2028
+ "type": "symbol",
2029
+ "source": "poi-data",
2030
+ "filter": [
2031
+ "all",
2032
+ ["==", ["get", "poiType"], "destination"],
2033
+ ["!=", ["get", "showLabel"], true]
2034
+ ],
2035
+ "minzoom": 16.5,
2036
+ "layout": {
2037
+ "icon-image": "destination-dot",
2038
+ "icon-size": [
2039
+ "interpolate", ["linear"], ["zoom"],
2040
+ 14, 0.1,
2041
+ 16, 0.3,
2042
+ 18, 0.5,
2043
+ 20, 0.8
2044
+ ],
2045
+ "icon-overlap": "cooperative",
2046
+ "icon-ignore-placement": false,
2047
+ "icon-padding": 0,
2048
+ "icon-rotation-alignment": "viewport",
2049
+ "icon-pitch-alignment": "viewport"
2050
+ }
2051
+ },
1951
2052
  {
1952
2053
  "id": "poi-you-are-here-heading",
1953
2054
  "type": "symbol",
@@ -1962,18 +2063,18 @@
1962
2063
  "text-field": "▲",
1963
2064
  "text-size": [
1964
2065
  "interpolate", ["linear"], ["zoom"],
1965
- 16, 28,
1966
- 18, 34,
1967
- 20, 42
2066
+ 16, 20,
2067
+ 18, 22,
2068
+ 20, 28
1968
2069
  ],
1969
2070
  "text-font": ["Noto Sans Bold"],
1970
- "text-anchor": "bottom",
1971
- "text-offset": [0, -0.45],
2071
+ "text-anchor": "bottom",
1972
2072
  "text-rotate": ["-", ["get", "heading"], 180],
1973
2073
  "text-rotation-alignment": "map",
1974
2074
  "text-pitch-alignment": "map",
1975
- "text-allow-overlap": true,
1976
- "text-ignore-placement": true
2075
+ "text-overlap": "always",
2076
+ "text-ignore-placement": false,
2077
+ "text-padding": 4
1977
2078
  },
1978
2079
  "paint": {
1979
2080
  "text-color": "#E31C3D",
@@ -2009,32 +2110,48 @@
2009
2110
  "layout": {
2010
2111
  "icon-image": "YouAreHereKiosk",
2011
2112
  "icon-anchor": "bottom",
2012
- "icon-offset": [0, 0],
2013
- "icon-allow-overlap": true,
2014
- "icon-ignore-placement": true,
2113
+ "icon-offset": [
2114
+ "interpolate", ["linear"], ["zoom"],
2115
+ 16, ["literal", [0, 20]],
2116
+ 18, ["literal", [0, 0]]
2117
+ ],
2015
2118
  "icon-size": [
2016
2119
  "interpolate", ["linear"], ["zoom"],
2017
- 16, 2,
2018
- 18, 1,
2019
- 20, 1
2120
+ 16, 0.9,
2121
+ 18, 0.8
2122
+ ],
2123
+ "icon-overlap": "never",
2124
+ "icon-ignore-placement": false,
2125
+ "icon-padding": [
2126
+ "interpolate", ["linear"], ["zoom"],
2127
+ 16, 12,
2128
+ 18, 14,
2129
+ 20, 18
2020
2130
  ],
2021
2131
  "text-field": ["get", "name"],
2022
2132
  "text-size": [
2023
2133
  "interpolate", ["linear"], ["zoom"],
2024
- 16, 20,
2025
- 18, 19,
2026
- 20, 22
2134
+ 16, 16,
2135
+ 18, 16,
2136
+ 20, 18
2027
2137
  ],
2028
2138
  "text-offset": [
2029
2139
  "interpolate", ["linear"], ["zoom"],
2030
- 16, ["literal", [0, -4]],
2140
+ 16, ["literal", [0, -1.5]],
2031
2141
  18, ["literal", [0, -2.5]]
2032
2142
  ],
2033
2143
  "text-anchor": "bottom",
2034
2144
  "text-font": ["Noto Sans Bold"],
2035
- "text-allow-overlap": true,
2036
- "text-ignore-placement": true,
2037
- "text-optional": false
2145
+ "text-overlap": "never",
2146
+ "text-ignore-placement": false,
2147
+ "text-padding": [
2148
+ "interpolate", ["linear"], ["zoom"],
2149
+ 16, 8,
2150
+ 18, 10,
2151
+ 20, 12
2152
+ ],
2153
+ "text-optional": false,
2154
+ "text-transform": "uppercase"
2038
2155
  },
2039
2156
  "paint": {
2040
2157
  "text-color": "#E31C3D",