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

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.37",
3
+ "version": "1.0.0-rc.39",
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.3"
87
+ "@minmaps-dev/material-icon-set": "0.2.0-rc.4"
88
88
  },
89
89
  "scripts": {
90
90
  "build": "rimraf dist && rollup -c",
@@ -6,8 +6,8 @@
6
6
  "author": "Hospital Mapping Team",
7
7
  "version": "7.1.0"
8
8
  },
9
- "sprite": "http://localhost:4000/sprites/sprite",
10
- "glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
9
+ "sprite": "https://martin-dev.purpleground-b373fa6d.eastus.azurecontainerapps.io/sprite/badged",
10
+ "glyphs": "https://martin-dev.purpleground-b373fa6d.eastus.azurecontainerapps.io/font/{fontstack}/{range}.pbf",
11
11
  "light": {
12
12
  "anchor": "viewport",
13
13
  "color": "#fff4e8",
@@ -17,7 +17,7 @@
17
17
  "sources": {
18
18
  "protomaps": {
19
19
  "type": "vector",
20
- "url": "pmtiles://https://jacsdevtiles-gjgbejbpdzbgcge8.z01.azurefd.net/pmtiles/base/usa.pmtiles",
20
+ "url": "https://martin-dev.purpleground-b373fa6d.eastus.azurecontainerapps.io/usa",
21
21
  "attribution": "© OpenStreetMap contributors"
22
22
  },
23
23
  "indoor-data": {
@@ -470,7 +470,6 @@
470
470
  "text-halo-blur": 0.3
471
471
  }
472
472
  },
473
-
474
473
  {
475
474
  "id": "basemap-poi-marine",
476
475
  "type": "symbol",
@@ -487,9 +486,9 @@
487
486
  "icon-image": [
488
487
  "match",
489
488
  ["get", "kind"],
490
- "marina", "basemap-poi-anchor",
491
- ["ferry_terminal", "ferry", "ferry_stop"], "basemap-poi-directions_boat",
492
- "basemap-poi-anchor"
489
+ "marina", "material-anchor",
490
+ ["ferry_terminal", "ferry", "ferry_stop"], "material-directions_boat",
491
+ "material-anchor"
493
492
  ],
494
493
  "icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.5, 16, 0.68, 19, 0.82],
495
494
  "icon-allow-overlap": false,
@@ -532,20 +531,20 @@
532
531
  "place_of_worship", [
533
532
  "match",
534
533
  ["get", "kind_detail"],
535
- "christian", "basemap-poi-church",
536
- "jewish", "basemap-poi-synagogue",
537
- "muslim", "basemap-poi-mosque",
538
- "buddhist", "basemap-poi-temple_buddhist",
539
- "hindu", "basemap-poi-temple_hindu",
540
- "basemap-poi-church"
534
+ "christian", "material-church",
535
+ "jewish", "material-synagogue",
536
+ "muslim", "material-mosque",
537
+ "buddhist", "material-temple_buddhist",
538
+ "hindu", "material-temple_hindu",
539
+ "material-church"
541
540
  ],
542
- "fire_station", "basemap-poi-local_fire_department",
543
- "post_office", "basemap-poi-local_post_office",
544
- "library", "basemap-poi-local_library",
545
- "townhall", "basemap-poi-account_balance",
546
- "school", "basemap-poi-school",
547
- "hospital", "basemap-poi-local_hospital",
548
- "basemap-poi-account_balance"
541
+ "fire_station", "material-local_fire_department",
542
+ "post_office", "material-local_post_office",
543
+ "library", "material-local_library",
544
+ "townhall", "material-account_balance",
545
+ "school", "material-school",
546
+ "hospital", "material-local_hospital",
547
+ "material-account_balance"
549
548
  ],
550
549
  "icon-size": ["interpolate", ["linear"], ["zoom"], 13, 0.5, 16, 0.68, 19, 0.82],
551
550
  "icon-allow-overlap": false,
@@ -1508,13 +1507,12 @@
1508
1507
  "icon-image": ["get", "iconId"],
1509
1508
  "icon-size": [
1510
1509
  "interpolate", ["exponential", 1.3], ["zoom"],
1511
- 14, 0.18,
1512
- 16, 0.3,
1513
- 18, 0.48,
1514
- 20, 0.5,
1515
- 22, 0.85
1510
+ 15, 0.3,
1511
+ 16, 0.5,
1512
+ 18, 0.6,
1513
+ 20, 0.75,
1514
+ 22, 0.9
1516
1515
  ],
1517
-
1518
1516
  "icon-optional": false,
1519
1517
  "icon-rotation-alignment": "viewport",
1520
1518
  "icon-pitch-alignment": "viewport",
@@ -1534,9 +1532,6 @@
1534
1532
  "text-rotation-alignment": "viewport"
1535
1533
  },
1536
1534
  "paint": {
1537
- "icon-halo-color": "#FFFFFF",
1538
- "icon-halo-width": 1.5,
1539
- "icon-halo-blur": 0.5,
1540
1535
  "text-color": "#242930",
1541
1536
  "text-halo-color": "#FFFFFF",
1542
1537
  "text-halo-width": 1.5,
@@ -1556,14 +1551,13 @@
1556
1551
  "icon-image": ["get", "iconId"],
1557
1552
  "icon-size": [
1558
1553
  "interpolate", ["exponential", 1.3], ["zoom"],
1559
- 14, 0.18,
1560
- 16, 0.3,
1561
- 18, 0.48,
1562
- 20, 0.5,
1563
- 22, 0.85
1554
+ 15, 0.3,
1555
+ 16, 0.5,
1556
+ 18, 0.6,
1557
+ 20, 0.75,
1558
+ 22, 0.9
1564
1559
  ],
1565
1560
  "icon-allow-overlap": true,
1566
-
1567
1561
  "icon-optional": false,
1568
1562
  "icon-rotation-alignment": "viewport",
1569
1563
  "icon-pitch-alignment": "viewport",
@@ -1583,9 +1577,6 @@
1583
1577
  "text-rotation-alignment": "viewport"
1584
1578
  },
1585
1579
  "paint": {
1586
- "icon-halo-color": "#FFFFFF",
1587
- "icon-halo-width": 1.5,
1588
- "icon-halo-blur": 0.5,
1589
1580
  "text-color": "#242930",
1590
1581
  "text-halo-color": "#FFFFFF",
1591
1582
  "text-halo-width": 1.5,
@@ -1605,11 +1596,11 @@
1605
1596
  "icon-image": ["get", "iconId"],
1606
1597
  "icon-size": [
1607
1598
  "interpolate", ["exponential", 1.3], ["zoom"],
1608
- 14, 0.18,
1609
- 16, 0.3,
1610
- 18, 0.48,
1611
- 20, 0.5,
1612
- 22, 0.85
1599
+ 15, 0.3,
1600
+ 16, 0.5,
1601
+ 18, 0.6,
1602
+ 20, 0.75,
1603
+ 22, 0.9
1613
1604
  ],
1614
1605
  "icon-allow-overlap": false,
1615
1606
  "icon-padding": [
@@ -1637,9 +1628,6 @@
1637
1628
  "text-rotation-alignment": "viewport"
1638
1629
  },
1639
1630
  "paint": {
1640
- "icon-halo-color": "#FFFFFF",
1641
- "icon-halo-width": 1.5,
1642
- "icon-halo-blur": 0.5,
1643
1631
  "text-color": "#242930",
1644
1632
  "text-halo-color": "#FFFFFF",
1645
1633
  "text-halo-width": 1.5,
@@ -1659,11 +1647,11 @@
1659
1647
  "icon-image": ["get", "iconId"],
1660
1648
  "icon-size": [
1661
1649
  "interpolate", ["exponential", 1.3], ["zoom"],
1662
- 14, 0.18,
1663
- 16, 0.3,
1664
- 18, 0.48,
1665
- 20, 0.5,
1666
- 22, 0.85
1650
+ 15, 0.3,
1651
+ 16, 0.5,
1652
+ 18, 0.6,
1653
+ 20, 0.75,
1654
+ 22, 0.9
1667
1655
  ],
1668
1656
  "icon-allow-overlap": false,
1669
1657
  "icon-padding": [
@@ -1691,9 +1679,6 @@
1691
1679
  "text-rotation-alignment": "viewport"
1692
1680
  },
1693
1681
  "paint": {
1694
- "icon-halo-color": "#FFFFFF",
1695
- "icon-halo-width": 1.5,
1696
- "icon-halo-blur": 0.5,
1697
1682
  "text-color": "#242930",
1698
1683
  "text-halo-color": "#FFFFFF",
1699
1684
  "text-halo-width": 1.5,
@@ -1713,11 +1698,11 @@
1713
1698
  "icon-image": ["get", "iconId"],
1714
1699
  "icon-size": [
1715
1700
  "interpolate", ["exponential", 1.3], ["zoom"],
1716
- 14, 0.18,
1717
- 16, 0.3,
1718
- 18, 0.48,
1719
- 20, 0.5,
1720
- 22, 0.85
1701
+ 15, 0.3,
1702
+ 16, 0.5,
1703
+ 18, 0.6,
1704
+ 20, 0.75,
1705
+ 22, 0.9
1721
1706
  ],
1722
1707
  "icon-allow-overlap": false,
1723
1708
  "icon-padding": [
@@ -1745,9 +1730,6 @@
1745
1730
  "text-rotation-alignment": "viewport"
1746
1731
  },
1747
1732
  "paint": {
1748
- "icon-halo-color": "#FFFFFF",
1749
- "icon-halo-width": 1.5,
1750
- "icon-halo-blur": 0.5,
1751
1733
  "text-color": "#242930",
1752
1734
  "text-halo-color": "#FFFFFF",
1753
1735
  "text-halo-width": 1.5,
@@ -1771,11 +1753,11 @@
1771
1753
  "icon-image": ["get", "iconId"],
1772
1754
  "icon-size": [
1773
1755
  "interpolate", ["exponential", 1.3], ["zoom"],
1774
- 14, 0.18,
1775
- 16, 0.3,
1776
- 18, 0.48,
1777
- 20, 0.5,
1778
- 22, 0.85
1756
+ 15, 0.3,
1757
+ 16, 0.5,
1758
+ 18, 0.6,
1759
+ 20, 0.75,
1760
+ 22, 0.9
1779
1761
  ],
1780
1762
  "icon-allow-overlap": false,
1781
1763
  "icon-padding": [
@@ -1803,9 +1785,6 @@
1803
1785
  "text-rotation-alignment": "viewport"
1804
1786
  },
1805
1787
  "paint": {
1806
- "icon-halo-color": "#FFFFFF",
1807
- "icon-halo-width": 1.5,
1808
- "icon-halo-blur": 0.5,
1809
1788
  "text-color": "#242930",
1810
1789
  "text-halo-color": "#FFFFFF",
1811
1790
  "text-halo-width": 1.5,
@@ -1824,11 +1803,11 @@
1824
1803
  "icon-image": "material-wc",
1825
1804
  "icon-size": [
1826
1805
  "interpolate", ["exponential", 1.3], ["zoom"],
1827
- 14, 0.18,
1828
- 16, 0.3,
1829
- 18, 0.48,
1830
- 20, 0.5,
1831
- 22, 0.85
1806
+ 15, 0.3,
1807
+ 16, 0.5,
1808
+ 18, 0.6,
1809
+ 20, 0.75,
1810
+ 22, 0.9
1832
1811
  ],
1833
1812
  "icon-allow-overlap": false,
1834
1813
  "icon-padding": [
@@ -1842,9 +1821,6 @@
1842
1821
  "icon-pitch-alignment": "viewport"
1843
1822
  },
1844
1823
  "paint": {
1845
- "icon-halo-color": "#FFFFFF",
1846
- "icon-halo-width": 1.5,
1847
- "icon-halo-blur": 0.5,
1848
1824
  "icon-translate": [0, -20],
1849
1825
  "icon-translate-anchor": "viewport"
1850
1826
  }
@@ -1879,8 +1855,8 @@
1879
1855
  "text-rotation-alignment": "viewport"
1880
1856
  },
1881
1857
  "paint": {
1882
- "text-color": "#0F1114",
1883
- "text-halo-color": "#FFFFFF",
1858
+ "text-color": "#0f1114",
1859
+ "text-halo-color": "#ffffff",
1884
1860
  "text-halo-width": 1.5,
1885
1861
  "text-halo-blur": 0.1
1886
1862
  }
@@ -2193,7 +2169,58 @@
2193
2169
  "circle-stroke-color": "#ffffff",
2194
2170
  "circle-opacity": 1
2195
2171
  }
2196
- },
2172
+ },
2173
+ {
2174
+ "id": "poi-route-connector-icons",
2175
+ "type": "symbol",
2176
+ "source": "poi-data",
2177
+ "filter": ["all", ["==", ["get", "amenityCategory"], "connector"], ["in", ["to-string", ["get", "waypointId"]], ["literal", []]]],
2178
+ "minzoom": 16.5,
2179
+ "layout": {
2180
+ "icon-image": ["get", "iconId"],
2181
+ "icon-size": [
2182
+ "interpolate", ["exponential", 1.3], ["zoom"],
2183
+ 15, 0.3,
2184
+ 16, 0.5,
2185
+ 18, 0.6,
2186
+ 20, 0.75,
2187
+ 22, 0.9
2188
+ ],
2189
+ "icon-allow-overlap": true,
2190
+ "icon-ignore-placement": true,
2191
+ "icon-padding": [
2192
+ "interpolate", ["linear"], ["zoom"],
2193
+ 15, 8,
2194
+ 17, 4,
2195
+ 19, 2
2196
+ ],
2197
+ "icon-optional": false,
2198
+ "icon-rotation-alignment": "viewport",
2199
+ "icon-pitch-alignment": "viewport",
2200
+
2201
+ "text-field": ["get", "name"],
2202
+ "text-size": [
2203
+ "interpolate", ["linear"], ["zoom"],
2204
+ 16, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 17],
2205
+ 19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
2206
+ 20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
2207
+ ],
2208
+ "text-offset": [0, 1.3],
2209
+ "text-anchor": "top",
2210
+ "text-optional": true,
2211
+ "text-padding": 4,
2212
+ "text-font": ["Noto Sans Bold"],
2213
+ "text-rotation-alignment": "viewport"
2214
+ },
2215
+ "paint": {
2216
+ "text-color": "#242930",
2217
+ "text-halo-color": "#FFFFFF",
2218
+ "text-halo-width": 1.5,
2219
+ "text-halo-blur": 1,
2220
+ "icon-translate": [0, -20],
2221
+ "icon-translate-anchor": "viewport"
2222
+ }
2223
+ },
2197
2224
  {
2198
2225
  "id": "poi-route-end-flag",
2199
2226
  "type": "symbol",
@@ -2203,11 +2230,11 @@
2203
2230
  "icon-image": "route-end-flag",
2204
2231
  "icon-size": [
2205
2232
  "interpolate", ["linear"], ["zoom"],
2206
- 14, 0.32,
2207
- 16, 0.42,
2208
- 18, 0.55,
2209
- 20, 0.6,
2210
- 22, 0.7
2233
+ 15, 0.52,
2234
+ 16, 0.8,
2235
+ 18, 0.9,
2236
+ 20, 1,
2237
+ 22, 1.2
2211
2238
  ],
2212
2239
  "icon-overlap": "always",
2213
2240
  "icon-ignore-placement": false,
@@ -2244,11 +2271,11 @@
2244
2271
  "icon-image": ["get", "iconId"],
2245
2272
  "icon-size": [
2246
2273
  "interpolate", ["exponential", 1.3], ["zoom"],
2247
- 14, 0.27,
2248
- 16, 0.45,
2249
- 18, 0.72,
2250
- 20, 0.75,
2251
- 22, 1.28
2274
+ 15, 0.45,
2275
+ 16, 0.75,
2276
+ 18, 0.9,
2277
+ 20, 1.13,
2278
+ 22, 1.35
2252
2279
  ],
2253
2280
  "icon-overlap": "always",
2254
2281
  "icon-ignore-placement": false,