@minmaps-dev/mm-web-sdk 1.0.0-rc.39 → 1.0.0-rc.40

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.39",
3
+ "version": "1.0.0-rc.40",
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",
@@ -1924,7 +1924,8 @@
1924
1924
  "filter": [
1925
1925
  "all",
1926
1926
  ["==", ["get", "poiType"], "destination"],
1927
- ["==", ["get", "showLabel"], true]
1927
+ ["==", ["get", "showLabel"], true],
1928
+ ["any", ["!", ["has", "groupSize"]], ["has", "isGroupLead"]]
1928
1929
  ],
1929
1930
  "layout": {
1930
1931
  "symbol-sort-key": 0,
@@ -1945,7 +1946,11 @@
1945
1946
  "icon-pitch-alignment": "viewport",
1946
1947
  "text-field": ["get", "name"],
1947
1948
  "text-size": 16,
1948
- "text-variable-anchor-offset": ["top", [0, 0.5], "right", [-0.5, 0], "bottom", [0, -0.5], "left", [0.5, 0]],
1949
+ "text-variable-anchor-offset": [
1950
+ "case", ["has", "groupSize"],
1951
+ ["literal", ["top", [0, 1], "right", [-0.9, 0], "bottom", [0, -1], "left", [0.9, 0]]],
1952
+ ["literal", ["top", [0, 0.5], "right", [-0.5, 0], "bottom", [0, -0.5], "left", [0.5, 0]]]
1953
+ ],
1949
1954
  "text-variable-anchor": ["top", "right" , "bottom", "left"],
1950
1955
  "text-font": ["Noto Sans Bold"],
1951
1956
  "text-max-width": 12,
@@ -1961,6 +1966,41 @@
1961
1966
  "text-halo-blur": 0
1962
1967
  }
1963
1968
  },
1969
+ {
1970
+ "id": "poi-destination-group-bubbles",
1971
+ "type": "symbol",
1972
+ "source": "poi-data",
1973
+ "filter": [
1974
+ "all",
1975
+ ["==", ["get", "poiType"], "destination"],
1976
+ ["has", "isGroupLead"]
1977
+ ],
1978
+ "layout": {
1979
+ "icon-image": "destination-group-dot",
1980
+ "icon-size": [
1981
+ "step", ["get", "groupSize"],
1982
+ 1.5,
1983
+ 10, 1,
1984
+ 25, 2.2
1985
+ ],
1986
+ "icon-overlap": "cooperative",
1987
+ "icon-ignore-placement": false,
1988
+ "icon-padding": 0,
1989
+ "icon-rotation-alignment": "viewport",
1990
+ "icon-pitch-alignment": "viewport",
1991
+
1992
+ "text-field": ["concat", "+", ["to-string", ["get", "groupSize"]]],
1993
+ "text-size": 14,
1994
+ "text-font": ["Noto Sans Bold"],
1995
+ "text-overlap": "always",
1996
+ "text-ignore-placement": true,
1997
+ "text-rotation-alignment": "viewport",
1998
+ "text-pitch-alignment": "viewport"
1999
+ },
2000
+ "paint": {
2001
+ "text-color": "#ffffff"
2002
+ }
2003
+ },
1964
2004
  {
1965
2005
  "id": "poi-destination-circles",
1966
2006
  "type": "symbol",