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

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.35",
3
+ "version": "1.0.0-rc.36",
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",
@@ -639,39 +639,6 @@
639
639
 
640
640
  }
641
641
  },
642
- {
643
- "id": "pattern-grass",
644
- "type": "fill",
645
- "source": "indoor-data",
646
-
647
- "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
648
- "paint": {
649
- "fill-color": "#B6D0AE",
650
- "fill-opacity": 1
651
- }
652
- },
653
- {
654
- "id": "pattern-trees",
655
- "type": "fill",
656
- "source": "indoor-data",
657
- "minzoom": 16.5,
658
- "filter": ["==", ["get", "featureType"], "Pattern-Trees"],
659
- "paint": {
660
- "fill-color": "#7D9F64",
661
- "fill-opacity": 0.8
662
- }
663
- },
664
- {
665
- "id": "pattern-pavement",
666
- "type": "fill",
667
- "source": "indoor-data",
668
- "minzoom": 16.5,
669
- "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
670
- "paint": {
671
- "fill-color": "#9E9E9E"
672
- }
673
- },
674
-
675
642
  {
676
643
  "id": "pattern-outdoor-terrace",
677
644
  "type": "fill",
@@ -707,12 +674,10 @@
707
674
  "line-dasharray": [3, 2]
708
675
  }
709
676
  },
710
-
711
677
  {
712
678
  "id": "boundary-fill",
713
679
  "type": "fill",
714
680
  "source": "indoor-data",
715
- "minzoom": 16.5,
716
681
  "filter": ["==", ["get", "featureType"], "Boundary"],
717
682
  "paint": {
718
683
  "fill-color": "#162e51",
@@ -736,6 +701,16 @@
736
701
  ]
737
702
  }
738
703
  },
704
+ {
705
+ "id": "pattern-pavement",
706
+ "type": "fill",
707
+ "source": "indoor-data",
708
+ "minzoom": 16.5,
709
+ "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
710
+ "paint": {
711
+ "fill-color": "#adadad"
712
+ }
713
+ },
739
714
  {
740
715
  "id": "corridors-fill",
741
716
  "type": "fill",
@@ -750,8 +725,69 @@
750
725
  "fill-color": "#f0f0f0"
751
726
  }
752
727
  },
753
-
754
-
728
+ {
729
+ "id": "pattern-grass",
730
+ "type": "fill",
731
+ "source": "indoor-data",
732
+
733
+ "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
734
+ "paint": {
735
+ "fill-color": "#B6D0AE",
736
+ "fill-opacity": 1
737
+ }
738
+ },
739
+ {
740
+ "id": "pattern-trees",
741
+ "type": "fill",
742
+ "source": "indoor-data",
743
+ "minzoom": 16.5,
744
+ "filter": ["==", ["get", "featureType"], "Pattern-Trees"],
745
+ "paint": {
746
+ "fill-color": "#7D9F64",
747
+ "fill-opacity": 1
748
+ }
749
+ },
750
+ {
751
+ "id": "custom-artLayer-5-fill",
752
+ "type": "fill",
753
+ "source": "indoor-data",
754
+ "minzoom": 16.5,
755
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-5"],
756
+ "paint": {
757
+ "fill-color": "#DDE9F0",
758
+ "fill-opacity": 0.8
759
+ }
760
+ },
761
+ {
762
+ "id": "custom-artLayer-4-fill",
763
+ "type": "fill",
764
+ "source": "indoor-data",
765
+ "minzoom": 16.5,
766
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-4"],
767
+ "paint": {
768
+ "fill-color": "#D1D1D1"
769
+ }
770
+ },
771
+ {
772
+ "id": "custom-artLayer-2-fill",
773
+ "type": "fill",
774
+ "source": "indoor-data",
775
+ "minzoom": 16.5,
776
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-2"],
777
+ "paint": {
778
+ "fill-color": "#B7C3CB"
779
+ }
780
+ },
781
+ {
782
+ "id": "custom-artLayer-1-fill",
783
+ "type": "fill",
784
+ "source": "indoor-data",
785
+ "minzoom": 16.5,
786
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-1"],
787
+ "paint": {
788
+ "fill-color": "#B7C3CB"
789
+ }
790
+ },
755
791
  {
756
792
  "id": "units-fill",
757
793
  "type": "fill",
@@ -770,7 +806,7 @@
770
806
  17,
771
807
  0.92,
772
808
  19,
773
- 0.95
809
+ 1
774
810
  ]
775
811
  }
776
812
  },
@@ -799,7 +835,7 @@
799
835
  "filter": ["==", ["get", "featureType"], "Back-of-house"],
800
836
  "paint": {
801
837
  "fill-color": "#e6e6e2",
802
- "fill-opacity": 0.7
838
+ "fill-opacity": 1
803
839
  }
804
840
  },
805
841
 
@@ -814,7 +850,7 @@
814
850
  "line-cap": "round"
815
851
  },
816
852
  "paint": {
817
- "line-color": "#b0b1b5",
853
+ "line-color": "#121213",
818
854
  "line-width": [
819
855
  "interpolate",
820
856
  ["linear"],
@@ -826,7 +862,7 @@
826
862
  20,
827
863
  1.4
828
864
  ],
829
- "line-opacity": 0.9
865
+ "line-opacity": 1
830
866
  }
831
867
  },
832
868
 
@@ -876,7 +912,8 @@
876
912
  "filter": ["==", ["get", "featureType"], "Obstacles"],
877
913
  "paint": {
878
914
  "fill-color": "#e8e9ed",
879
- "fill-opacity": 1
915
+ "fill-opacity": 1,
916
+ "fill-outline-color": "#7f7f7f"
880
917
  }
881
918
  },
882
919
  {
@@ -890,7 +927,7 @@
890
927
  "line-cap": "round"
891
928
  },
892
929
  "paint": {
893
- "line-color": "#98999D",
930
+ "line-color": "#7f7f7f",
894
931
  "line-width": [
895
932
  "interpolate",
896
933
  ["linear"],
@@ -917,8 +954,9 @@
917
954
  ["literal", ["Escalators", "Stairs", "Elevators"]]
918
955
  ],
919
956
  "paint": {
920
- "fill-color": "#112f4e",
921
- "fill-opacity": 1
957
+ "fill-color": "#a9aeb1",
958
+ "fill-opacity": 1,
959
+ "fill-outline-color": "#053851"
922
960
  }
923
961
  },
924
962
  {
@@ -936,19 +974,19 @@
936
974
  "line-cap": "round"
937
975
  },
938
976
  "paint": {
939
- "line-color": "#162e51",
977
+ "line-color": "#4A4C4D",
940
978
  "line-width": [
941
979
  "interpolate",
942
980
  ["linear"],
943
981
  ["zoom"],
944
982
  16,
945
- 0.6,
983
+ 1,
946
984
  18,
947
- 1.0,
985
+ 1.5,
948
986
  20,
949
- 1.4
987
+ 4
950
988
  ],
951
- "line-opacity": 0.9
989
+ "line-opacity": 1
952
990
  }
953
991
  },
954
992
 
@@ -973,7 +1011,7 @@
973
1011
  "filter": ["==", ["get", "featureType"], "Pattern-Lounge"],
974
1012
  "paint": {
975
1013
  "fill-color": "#ddd2e0",
976
- "fill-opacity": 0.5
1014
+ "fill-opacity": 1
977
1015
  }
978
1016
  },
979
1017
 
@@ -985,7 +1023,7 @@
985
1023
  "filter": ["==", ["get", "featureType"], "Pattern-Indoor-FoodCourt-Seating"],
986
1024
  "paint": {
987
1025
  "fill-color": "#f3e4c4",
988
- "fill-opacity": 0.6
1026
+ "fill-opacity": 1
989
1027
  }
990
1028
  },
991
1029
 
@@ -1083,7 +1121,7 @@
1083
1121
  "filter": ["==", ["get", "featureType"], "Interior-ParkingLots"],
1084
1122
  "paint": {
1085
1123
  "fill-color": "#757575",
1086
- "fill-opacity": 0.8
1124
+ "fill-opacity": 1
1087
1125
  }
1088
1126
  },
1089
1127
  {
@@ -1251,7 +1289,7 @@
1251
1289
  "type": "fill-extrusion",
1252
1290
  "source": "indoor-data",
1253
1291
  "minzoom": 16.5,
1254
- "filter": ["==", ["get", "featureType"], "Back-of-house"],
1292
+ "filter": ["==", ["get", "featureType"], "Back-of-houseBlock"],
1255
1293
  "paint": {
1256
1294
  "fill-extrusion-color": "#e6e6e2",
1257
1295
  "fill-extrusion-height": [
@@ -1277,7 +1315,7 @@
1277
1315
  "type": "fill-extrusion",
1278
1316
  "source": "indoor-data",
1279
1317
  "minzoom": 16.5,
1280
- "filter": ["==", ["get", "featureType"], "Restrooms"],
1318
+ "filter": ["==", ["get", "featureType"], "RestroomsBlock"],
1281
1319
  "paint": {
1282
1320
  "fill-extrusion-color": "#5f9070",
1283
1321
  "fill-extrusion-height": [
@@ -1303,7 +1341,7 @@
1303
1341
  "type": "fill-extrusion",
1304
1342
  "source": "indoor-data",
1305
1343
  "minzoom": 16.5,
1306
- "filter": ["==", ["get", "featureType"], "Obstacles"],
1344
+ "filter": ["==", ["get", "featureType"], "ObstaclesBlock"],
1307
1345
  "paint": {
1308
1346
  "fill-extrusion-color": "#E8E9ED",
1309
1347
  "fill-extrusion-height": [
@@ -1332,7 +1370,7 @@
1332
1370
  "filter": [
1333
1371
  "in",
1334
1372
  ["get", "featureType"],
1335
- ["literal", ["Escalators", "Stairs", "Elevators"]]
1373
+ ["literal", ["EscalatorsBlock", "StairsBlock", "ElevatorsBlock"]]
1336
1374
  ],
1337
1375
  "paint": {
1338
1376
  "fill-extrusion-color": "#a9aeb1",
@@ -1577,7 +1615,7 @@
1577
1615
  "id": "map-labels-buildings",
1578
1616
  "type": "symbol",
1579
1617
  "source": "map-labels-data",
1580
- "minzoom": 15.5,
1618
+ "minzoom": 17,
1581
1619
  "filter": [
1582
1620
  "all",
1583
1621
  ["in", "Building", ["get", "name"]]
@@ -1593,7 +1631,7 @@
1593
1631
  "format",
1594
1632
  "\uea40", {"text-font": ["literal", ["Material Icons"]]},
1595
1633
 
1596
- ["slice", ["get", "name"], 8, 10], {}
1634
+ ["slice", ["get", "name"], ["+", ["index-of", "Building", ["get", "name"]], 9]], {}
1597
1635
  ],
1598
1636
  "text-size": [
1599
1637
  "interpolate", ["linear"], ["zoom"],
@@ -1633,17 +1671,11 @@
1633
1671
  20, 0.5,
1634
1672
  22, 0.85
1635
1673
  ],
1636
- "icon-allow-overlap": false,
1637
- "icon-padding": [
1638
- "interpolate", ["linear"], ["zoom"],
1639
- 15, 6,
1640
- 17, 2,
1641
- 19, 1
1642
- ],
1674
+
1643
1675
  "icon-optional": false,
1644
1676
  "icon-rotation-alignment": "viewport",
1645
1677
  "icon-pitch-alignment": "viewport",
1646
-
1678
+ "icon-allow-overlap":true,
1647
1679
  "text-field": ["get", "name"],
1648
1680
  "text-size": [
1649
1681
  "interpolate", ["linear"], ["zoom"],
@@ -1651,10 +1683,10 @@
1651
1683
  19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
1652
1684
  20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
1653
1685
  ],
1654
- "text-offset": [0, 1.3],
1686
+
1655
1687
  "text-anchor": "top",
1656
1688
  "text-optional": true,
1657
- "text-padding": 4,
1689
+ "text-padding": 2,
1658
1690
  "text-font": ["Noto Sans Bold"],
1659
1691
  "text-rotation-alignment": "viewport"
1660
1692
  },
@@ -1687,13 +1719,8 @@
1687
1719
  20, 0.5,
1688
1720
  22, 0.85
1689
1721
  ],
1690
- "icon-allow-overlap": false,
1691
- "icon-padding": [
1692
- "interpolate", ["linear"], ["zoom"],
1693
- 15, 8,
1694
- 17, 4,
1695
- 19, 2
1696
- ],
1722
+ "icon-allow-overlap": true,
1723
+
1697
1724
  "icon-optional": false,
1698
1725
  "icon-rotation-alignment": "viewport",
1699
1726
  "icon-pitch-alignment": "viewport",
@@ -1979,6 +2006,42 @@
1979
2006
  "icon-translate-anchor": "viewport"
1980
2007
  }
1981
2008
  },
2009
+ {
2010
+ "id": "poi-amenity-instance-labels",
2011
+ "type": "symbol",
2012
+ "source": "poi-data",
2013
+ "filter": ["all", ["==", ["get", "poiType"], "amenity"], ["has", "instanceName"]],
2014
+
2015
+ "layout": {
2016
+ "symbol-sort-key": ["get", "rank"],
2017
+ "text-field": ["get", "instanceName"],
2018
+ "text-size": [
2019
+ "interpolate", ["linear"], ["zoom"],
2020
+ 16, 14,
2021
+ 19, 15,
2022
+ 22, 17
2023
+ ],
2024
+ "text-offset": [
2025
+ "interpolate", ["linear"], ["zoom"],
2026
+ 16, ["literal", [0, 0.25]],
2027
+ 17, ["literal", [0, 0.15]],
2028
+ 19, ["literal", [0, 0.25]],
2029
+ 20, ["literal", [0, 0.45]],
2030
+ 22, ["literal", [0, 0.85]]
2031
+ ],
2032
+ "text-anchor": "top",
2033
+ "text-optional": true,
2034
+ "text-padding": 4,
2035
+ "text-font": ["Noto Sans Bold"],
2036
+ "text-rotation-alignment": "viewport"
2037
+ },
2038
+ "paint": {
2039
+ "text-color": "#0F1114",
2040
+ "text-halo-color": "#FFFFFF",
2041
+ "text-halo-width": 1.5,
2042
+ "text-halo-blur": 0.1
2043
+ }
2044
+ },
1982
2045
  {
1983
2046
  "id": "poi-destination-labels",
1984
2047
  "type": "symbol",
@@ -1988,14 +2051,14 @@
1988
2051
  ["==", ["get", "poiType"], "destination"],
1989
2052
  ["==", ["get", "showLabel"], true]
1990
2053
  ],
1991
-
1992
2054
  "layout": {
1993
2055
  "symbol-sort-key": 0,
1994
2056
  "icon-image": "destination-dot",
1995
2057
  "icon-size": [
1996
2058
  "interpolate", ["linear"], ["zoom"],
1997
2059
  14, 0.1,
1998
- 16, 0.3,
2060
+ 16, 0.8,
2061
+ 17.30, 0.8,
1999
2062
  18, 0.5,
2000
2063
  20, 0.8
2001
2064
  ],
@@ -2007,7 +2070,7 @@
2007
2070
  "icon-pitch-alignment": "viewport",
2008
2071
  "text-field": ["get", "name"],
2009
2072
  "text-size": 16,
2010
- "text-variable-anchor-offset": ["top", [0, 0.8], "right", [-0.8, 0], "bottom", [0, -0.8], "left", [0.8, 0]],
2073
+ "text-variable-anchor-offset": ["top", [0, 0.5], "right", [-0.5, 0], "bottom", [0, -0.5], "left", [0.5, 0]],
2011
2074
  "text-variable-anchor": ["top", "right" , "bottom", "left"],
2012
2075
  "text-font": ["Noto Sans Bold"],
2013
2076
  "text-max-width": 12,
@@ -2017,7 +2080,7 @@
2017
2080
  "text-rotation-alignment": "viewport"
2018
2081
  },
2019
2082
  "paint": {
2020
- "text-color": "#FFFFFF",
2083
+ "text-color": "#F2F2F2",
2021
2084
  "text-halo-color": "#242930",
2022
2085
  "text-halo-width": 2,
2023
2086
  "text-halo-blur": 0
@@ -2038,7 +2101,8 @@
2038
2101
  "icon-size": [
2039
2102
  "interpolate", ["linear"], ["zoom"],
2040
2103
  14, 0.1,
2041
- 16, 0.3,
2104
+ 16, 0.8,
2105
+ 17.30, 0.8,
2042
2106
  18, 0.5,
2043
2107
  20, 0.8
2044
2108
  ],