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

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.36",
3
+ "version": "1.0.0-rc.37",
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",
@@ -37,6 +37,10 @@
37
37
  "type": "geojson",
38
38
  "data": { "type": "FeatureCollection", "features": [] }
39
39
  },
40
+ "route-end-data": {
41
+ "type": "geojson",
42
+ "data": { "type": "FeatureCollection", "features": [] }
43
+ },
40
44
  "poi-highlight-data": {
41
45
  "type": "geojson",
42
46
  "data": { "type": "FeatureCollection", "features": [] }
@@ -1419,167 +1423,6 @@
1419
1423
  }
1420
1424
  },
1421
1425
  {
1422
- "id": "route-halo",
1423
- "type": "line",
1424
- "source": "route-data",
1425
- "minzoom": 16.5,
1426
- "layout": {
1427
- "line-cap": "round",
1428
- "line-join": "round"
1429
- },
1430
- "paint": {
1431
- "line-color": "#ffffff",
1432
- "line-width": [
1433
- "interpolate", ["linear"], ["zoom"],
1434
- 16.5, 10,
1435
- 18.0, 15,
1436
- 20.0, 21
1437
- ],
1438
- "line-opacity": 0.95
1439
- }
1440
- },
1441
- {
1442
- "id": "route-line",
1443
- "type": "line",
1444
- "source": "route-data",
1445
- "minzoom": 16.5,
1446
- "layout": {
1447
- "line-cap": "round",
1448
- "line-join": "round"
1449
- },
1450
- "paint": {
1451
- "line-color": "#d32f2f",
1452
- "line-width": [
1453
- "interpolate", ["linear"], ["zoom"],
1454
- 16.5, 6,
1455
- 18.0, 9,
1456
- 20.0, 13
1457
- ],
1458
- "line-opacity": 1
1459
- }
1460
- },
1461
- {
1462
- "id": "route-arrows",
1463
- "type": "symbol",
1464
- "source": "route-data",
1465
- "minzoom": 16.5,
1466
- "layout": {
1467
- "symbol-placement": "line",
1468
- "symbol-spacing": [
1469
- "interpolate", ["linear"], ["zoom"],
1470
- 16.5, 150,
1471
- 18.0, 290,
1472
- 20.0, 480
1473
- ],
1474
- "icon-image": "route-arrow",
1475
- "icon-rotation-alignment": "map",
1476
- "icon-pitch-alignment": "map",
1477
- "icon-allow-overlap": true,
1478
- "icon-ignore-placement": true,
1479
- "icon-size": [
1480
- "interpolate", ["linear"], ["zoom"],
1481
- 16.5, 0.55,
1482
- 18.0, 0.75,
1483
- 20.0, 0.85
1484
- ]
1485
- },
1486
- "paint": {
1487
- "icon-opacity": 1
1488
- }
1489
- },
1490
- {
1491
- "id": "route-arrows-flow",
1492
- "type": "symbol",
1493
- "source": "route-arrows-flow",
1494
- "minzoom": 16.5,
1495
- "layout": {
1496
- "icon-image": "route-arrow",
1497
- "icon-rotate": ["get", "rotate"],
1498
- "icon-rotation-alignment": "map",
1499
- "icon-pitch-alignment": "map",
1500
- "icon-allow-overlap": true,
1501
- "icon-ignore-placement": true,
1502
- "icon-size": [
1503
- "interpolate", ["linear"], ["zoom"],
1504
- 16.5, 0.55,
1505
- 18.0, 0.75,
1506
- 20.0, 0.85
1507
- ]
1508
- },
1509
- "paint": {
1510
- "icon-opacity": 1
1511
- }
1512
- },
1513
- {
1514
- "id": "route-line-active-halo",
1515
- "type": "line",
1516
- "source": "route-active-step",
1517
- "minzoom": 16.5,
1518
- "layout": {
1519
- "line-cap": "round",
1520
- "line-join": "round"
1521
- },
1522
- "paint": {
1523
- "line-color": "#FFFFFF",
1524
- "line-width": [
1525
- "interpolate", ["linear"], ["zoom"],
1526
- 16.5, 8,
1527
- 18.0, 11,
1528
- 20.0, 14
1529
- ],
1530
- "line-opacity": 0.85
1531
- }
1532
- },
1533
- {
1534
- "id": "route-line-active",
1535
- "type": "line",
1536
- "source": "route-active-step",
1537
- "minzoom": 16.5,
1538
- "layout": {
1539
- "line-cap": "round",
1540
- "line-join": "round"
1541
- },
1542
- "paint": {
1543
- "line-color": "#fdb81e",
1544
- "line-width": [
1545
- "interpolate", ["linear"], ["zoom"],
1546
- 16.5, 5,
1547
- 18.0, 7,
1548
- 20.0, 9
1549
- ],
1550
- "line-opacity": 1
1551
- }
1552
- },
1553
- {
1554
- "id": "route-endpoint-source",
1555
- "type": "circle",
1556
- "source": "route-endpoints",
1557
- "minzoom": 16.5,
1558
- "filter": ["==", ["get", "role"], "source"],
1559
- "paint": {
1560
- "circle-radius": 6,
1561
- "circle-color": "#ffffff",
1562
- "circle-stroke-width": 3,
1563
- "circle-stroke-color": "#d32f2f",
1564
- "circle-opacity": 1
1565
- }
1566
- },
1567
- {
1568
- "id": "route-endpoint-destination",
1569
- "type": "circle",
1570
- "source": "route-endpoints",
1571
- "minzoom": 16.5,
1572
- "filter": ["==", ["get", "role"], "destination"],
1573
- "paint": {
1574
- "circle-radius": 7,
1575
- "circle-color": "#d32f2f",
1576
- "circle-stroke-width": 3,
1577
- "circle-stroke-color": "#ffffff",
1578
- "circle-opacity": 1
1579
- }
1580
- },
1581
-
1582
- {
1583
1426
  "id": "map-labels",
1584
1427
  "type": "symbol",
1585
1428
  "source": "map-labels-data",
@@ -2042,6 +1885,62 @@
2042
1885
  "text-halo-blur": 0.1
2043
1886
  }
2044
1887
  },
1888
+ {
1889
+ "id": "poi-destination-dots",
1890
+ "type": "symbol",
1891
+ "source": "poi-destination-cluster-data",
1892
+ "filter": ["!", ["has", "point_count"]],
1893
+ "minzoom": 16.5,
1894
+ "maxzoom": 18.25,
1895
+ "layout": {
1896
+ "icon-image": "destination-dot",
1897
+ "icon-size": [
1898
+ "interpolate", ["linear"], ["zoom"],
1899
+ 14, 0.1,
1900
+ 16, 0.8,
1901
+ 17.30, 0.8,
1902
+ 18, 0.5,
1903
+ 20, 0.8
1904
+ ],
1905
+ "icon-overlap": "cooperative",
1906
+ "icon-ignore-placement": false,
1907
+ "icon-padding": 0,
1908
+ "icon-rotation-alignment": "viewport",
1909
+ "icon-pitch-alignment": "viewport"
1910
+ }
1911
+ },
1912
+ {
1913
+ "id": "poi-destination-cluster-bubbles",
1914
+ "type": "symbol",
1915
+ "source": "poi-destination-cluster-data",
1916
+ "filter": ["has", "point_count"],
1917
+ "minzoom": 16.5,
1918
+ "maxzoom": 18.25,
1919
+ "layout": {
1920
+ "icon-image": "destination-cluster-dot",
1921
+ "icon-size": [
1922
+ "step", ["get", "point_count"],
1923
+ 1.3,
1924
+ 10, 1.5,
1925
+ 25, 1.7
1926
+ ],
1927
+ "icon-overlap": "cooperative",
1928
+ "icon-ignore-placement": false,
1929
+ "icon-padding": 0,
1930
+ "icon-rotation-alignment": "viewport",
1931
+ "icon-pitch-alignment": "viewport",
1932
+ "text-field": ["get", "point_count_abbreviated"],
1933
+ "text-size": 18,
1934
+ "text-font": ["Noto Sans Bold"],
1935
+ "text-overlap": "always",
1936
+ "text-ignore-placement": true,
1937
+ "text-rotation-alignment": "viewport",
1938
+ "text-pitch-alignment": "viewport"
1939
+ },
1940
+ "paint": {
1941
+ "text-color": "#ffffff"
1942
+ }
1943
+ },
2045
1944
  {
2046
1945
  "id": "poi-destination-labels",
2047
1946
  "type": "symbol",
@@ -2113,6 +2012,279 @@
2113
2012
  "icon-pitch-alignment": "viewport"
2114
2013
  }
2115
2014
  },
2015
+ {
2016
+ "id": "route-halo",
2017
+ "type": "line",
2018
+ "source": "route-data",
2019
+ "minzoom": 16.5,
2020
+ "layout": {
2021
+ "line-cap": "round",
2022
+ "line-join": "round"
2023
+ },
2024
+ "paint": {
2025
+ "line-color": "#ffffff",
2026
+ "line-width": [
2027
+ "interpolate", ["linear"], ["zoom"],
2028
+ 16.5, 10,
2029
+ 18.0, 15,
2030
+ 20.0, 21
2031
+ ],
2032
+ "line-opacity": 0.95
2033
+ }
2034
+ },
2035
+ {
2036
+ "id": "route-line",
2037
+ "type": "line",
2038
+ "source": "route-data",
2039
+ "minzoom": 16.5,
2040
+ "layout": {
2041
+ "line-cap": "round",
2042
+ "line-join": "round"
2043
+ },
2044
+ "paint": {
2045
+ "line-color": "#d32f2f",
2046
+ "line-width": [
2047
+ "interpolate", ["linear"], ["zoom"],
2048
+ 16.5, 6,
2049
+ 18.0, 9,
2050
+ 20.0, 13
2051
+ ],
2052
+ "line-opacity": 1
2053
+ }
2054
+ },
2055
+ {
2056
+ "id": "route-blocker",
2057
+ "type": "symbol",
2058
+ "source": "route-data",
2059
+ "minzoom": 16.5,
2060
+ "layout": {
2061
+ "symbol-placement": "line",
2062
+ "symbol-spacing": 6,
2063
+ "icon-image": "route-blocker",
2064
+ "icon-rotation-alignment": "viewport",
2065
+ "icon-pitch-alignment": "viewport",
2066
+ "icon-overlap": "always",
2067
+ "icon-ignore-placement": false,
2068
+ "icon-padding": 2,
2069
+ "icon-size": [
2070
+ "interpolate", ["linear"], ["zoom"],
2071
+ 16.5, 0.6,
2072
+ 18.0, 0.8,
2073
+ 20.0, 1.0
2074
+ ]
2075
+ }
2076
+ },
2077
+ {
2078
+ "id": "route-arrows",
2079
+ "type": "symbol",
2080
+ "source": "route-data",
2081
+ "minzoom": 16.5,
2082
+ "layout": {
2083
+ "symbol-placement": "line",
2084
+ "symbol-spacing": [
2085
+ "interpolate", ["linear"], ["zoom"],
2086
+ 16.5, 150,
2087
+ 18.0, 290,
2088
+ 20.0, 480
2089
+ ],
2090
+ "icon-image": "route-arrow",
2091
+ "icon-rotation-alignment": "map",
2092
+ "icon-pitch-alignment": "map",
2093
+ "icon-allow-overlap": true,
2094
+ "icon-ignore-placement": true,
2095
+ "icon-size": [
2096
+ "interpolate", ["linear"], ["zoom"],
2097
+ 16.5, 0.55,
2098
+ 18.0, 0.75,
2099
+ 20.0, 0.85
2100
+ ]
2101
+ },
2102
+ "paint": {
2103
+ "icon-opacity": 1
2104
+ }
2105
+ },
2106
+ {
2107
+ "id": "route-arrows-flow",
2108
+ "type": "symbol",
2109
+ "source": "route-arrows-flow",
2110
+ "minzoom": 16.5,
2111
+ "layout": {
2112
+ "icon-image": "route-arrow",
2113
+ "icon-rotate": ["get", "rotate"],
2114
+ "icon-rotation-alignment": "map",
2115
+ "icon-pitch-alignment": "map",
2116
+ "icon-allow-overlap": true,
2117
+ "icon-ignore-placement": true,
2118
+ "icon-size": [
2119
+ "interpolate", ["linear"], ["zoom"],
2120
+ 16.5, 0.55,
2121
+ 18.0, 0.75,
2122
+ 20.0, 0.85
2123
+ ]
2124
+ },
2125
+ "paint": {
2126
+ "icon-opacity": 1
2127
+ }
2128
+ },
2129
+ {
2130
+ "id": "route-line-active-halo",
2131
+ "type": "line",
2132
+ "source": "route-active-step",
2133
+ "minzoom": 16.5,
2134
+ "layout": {
2135
+ "line-cap": "round",
2136
+ "line-join": "round"
2137
+ },
2138
+ "paint": {
2139
+ "line-color": "#FFFFFF",
2140
+ "line-width": [
2141
+ "interpolate", ["linear"], ["zoom"],
2142
+ 16.5, 8,
2143
+ 18.0, 11,
2144
+ 20.0, 14
2145
+ ],
2146
+ "line-opacity": 0.85
2147
+ }
2148
+ },
2149
+ {
2150
+ "id": "route-line-active",
2151
+ "type": "line",
2152
+ "source": "route-active-step",
2153
+ "minzoom": 16.5,
2154
+ "layout": {
2155
+ "line-cap": "round",
2156
+ "line-join": "round"
2157
+ },
2158
+ "paint": {
2159
+ "line-color": "#fdb81e",
2160
+ "line-width": [
2161
+ "interpolate", ["linear"], ["zoom"],
2162
+ 16.5, 5,
2163
+ 18.0, 7,
2164
+ 20.0, 9
2165
+ ],
2166
+ "line-opacity": 1
2167
+ }
2168
+ },
2169
+ {
2170
+ "id": "route-endpoint-source",
2171
+ "type": "circle",
2172
+ "source": "route-endpoints",
2173
+ "minzoom": 16.5,
2174
+ "filter": ["==", ["get", "role"], "source"],
2175
+ "paint": {
2176
+ "circle-radius": 6,
2177
+ "circle-color": "#ffffff",
2178
+ "circle-stroke-width": 3,
2179
+ "circle-stroke-color": "#d32f2f",
2180
+ "circle-opacity": 1
2181
+ }
2182
+ },
2183
+ {
2184
+ "id": "route-endpoint-destination",
2185
+ "type": "circle",
2186
+ "source": "route-endpoints",
2187
+ "minzoom": 16.5,
2188
+ "filter": ["==", ["get", "role"], "destination"],
2189
+ "paint": {
2190
+ "circle-radius": 7,
2191
+ "circle-color": "#d32f2f",
2192
+ "circle-stroke-width": 3,
2193
+ "circle-stroke-color": "#ffffff",
2194
+ "circle-opacity": 1
2195
+ }
2196
+ },
2197
+ {
2198
+ "id": "poi-route-end-flag",
2199
+ "type": "symbol",
2200
+ "source": "route-end-data",
2201
+ "filter": ["==", ["get", "kind"], "destination"],
2202
+ "layout": {
2203
+ "icon-image": "route-end-flag",
2204
+ "icon-size": [
2205
+ "interpolate", ["linear"], ["zoom"],
2206
+ 14, 0.32,
2207
+ 16, 0.42,
2208
+ 18, 0.55,
2209
+ 20, 0.6,
2210
+ 22, 0.7
2211
+ ],
2212
+ "icon-overlap": "always",
2213
+ "icon-ignore-placement": false,
2214
+ "icon-rotation-alignment": "viewport",
2215
+ "icon-pitch-alignment": "viewport",
2216
+ "text-field": ["get", "name"],
2217
+ "text-size": 16,
2218
+ "text-variable-anchor-offset": [
2219
+ "top", [0, 1.6],
2220
+ "right", [-2, 0],
2221
+ "bottom", [0, -1.6],
2222
+ "left", [2, 0]
2223
+ ],
2224
+ "text-font": ["Noto Sans Bold"],
2225
+ "text-max-width": 12,
2226
+ "text-overlap": "always",
2227
+ "text-ignore-placement": false,
2228
+ "text-optional": false,
2229
+ "text-rotation-alignment": "viewport"
2230
+ },
2231
+ "paint": {
2232
+ "text-color": "#F2F2F2",
2233
+ "text-halo-color": "#242930",
2234
+ "text-halo-width": 2,
2235
+ "text-halo-blur": 0
2236
+ }
2237
+ },
2238
+ {
2239
+ "id": "poi-route-end-amenity",
2240
+ "type": "symbol",
2241
+ "source": "route-end-data",
2242
+ "filter": ["==", ["get", "kind"], "amenity"],
2243
+ "layout": {
2244
+ "icon-image": ["get", "iconId"],
2245
+ "icon-size": [
2246
+ "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
2252
+ ],
2253
+ "icon-overlap": "always",
2254
+ "icon-ignore-placement": false,
2255
+ "icon-rotation-alignment": "viewport",
2256
+ "icon-pitch-alignment": "viewport",
2257
+ "text-field": ["coalesce", ["get", "instanceName"], ""],
2258
+ "text-size": [
2259
+ "interpolate", ["linear"], ["zoom"],
2260
+ 16, 14,
2261
+ 19, 15,
2262
+ 22, 17
2263
+ ],
2264
+ "text-offset": [
2265
+ "interpolate", ["linear"], ["zoom"],
2266
+ 16, ["literal", [0, 0.3]],
2267
+ 18, ["literal", [0, 0.5]],
2268
+ 20, ["literal", [0, 0.55]],
2269
+ 22, ["literal", [0, 1.5]]
2270
+ ],
2271
+ "text-anchor": "top",
2272
+ "text-font": ["Noto Sans Bold"],
2273
+ "text-overlap": "always",
2274
+ "text-ignore-placement": false,
2275
+ "text-optional": true,
2276
+ "text-rotation-alignment": "viewport"
2277
+ },
2278
+ "paint": {
2279
+ "icon-translate": [0, -20],
2280
+ "icon-translate-anchor": "viewport",
2281
+ "text-color": "#0F1114",
2282
+ "text-halo-color": "#FFFFFF",
2283
+ "text-halo-width": 1.5,
2284
+ "text-halo-blur": 0.1
2285
+ }
2286
+ },
2287
+
2116
2288
  {
2117
2289
  "id": "poi-you-are-here-heading",
2118
2290
  "type": "symbol",