@minmaps-dev/mm-web-sdk 1.0.0-rc.42 → 1.0.0-rc.44

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.42",
3
+ "version": "1.0.0-rc.44",
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",
@@ -1463,37 +1463,37 @@
1463
1463
  ["in", "Building", ["get", "name"]]
1464
1464
  ],
1465
1465
  "layout": {
1466
- "symbol-sort-key": 10,
1467
- "icon-image": "map-label-bg",
1468
- "icon-text-fit": "width",
1469
- "icon-text-fit-padding": [0, 4, 0, 4],
1466
+ "symbol-sort-key": 0,
1467
+ "icon-image": "label-building",
1470
1468
  "icon-size": [
1471
1469
  "interpolate", ["linear"], ["zoom"],
1472
- 15.5, 0.8,
1473
- 18, 1,
1474
- 20, 1.15
1470
+ 15.5, 0.5,
1471
+ 18, 0.7,
1472
+ 20, 1
1475
1473
  ],
1476
- "icon-allow-overlap": false,
1474
+ "icon-allow-overlap": true,
1477
1475
  "icon-ignore-placement": false,
1478
- "text-field": ["slice", ["get", "name"], ["+", ["index-of", "Building", ["get", "name"]], 9]],
1476
+ "text-field": ["get", "name"],
1479
1477
  "text-size": [
1480
1478
  "interpolate", ["linear"], ["zoom"],
1481
- 15.5, 14,
1482
- 16.5, 16,
1483
- 18, 18,
1484
- 20, 20
1479
+ 18, 16,
1480
+ 20, 18
1485
1481
  ],
1482
+ "text-optional": false,
1486
1483
  "text-font": ["Noto Sans Bold"],
1487
1484
  "text-letter-spacing": 0.04,
1488
- "text-max-width": 10,
1489
- "text-anchor": "center",
1490
-
1485
+ "text-max-width": 8,
1486
+ "text-anchor": "top",
1487
+ "text-offset": [0, 1.1],
1491
1488
  "text-rotation-alignment": "viewport",
1492
- "text-allow-overlap": false,
1489
+ "text-allow-overlap": true,
1493
1490
  "text-padding": 4
1494
1491
  },
1495
1492
  "paint": {
1496
- "text-color": "#fffffe"
1493
+ "text-color": "#162e51",
1494
+ "text-halo-color": "#fffffe",
1495
+ "text-halo-width": 1.4,
1496
+ "text-halo-blur": 0.5
1497
1497
  }
1498
1498
  },
1499
1499
 
@@ -2091,6 +2091,47 @@
2091
2091
  ]
2092
2092
  }
2093
2093
  },
2094
+
2095
+ {
2096
+ "id": "route-line-active-halo",
2097
+ "type": "line",
2098
+ "source": "route-active-step",
2099
+ "minzoom": 16.5,
2100
+ "layout": {
2101
+ "line-cap": "round",
2102
+ "line-join": "round"
2103
+ },
2104
+ "paint": {
2105
+ "line-color": "#01A91D",
2106
+ "line-width": [
2107
+ "interpolate", ["linear"], ["zoom"],
2108
+ 16.5, 8,
2109
+ 18.0, 11,
2110
+ 20.0, 14
2111
+ ],
2112
+ "line-opacity": 0.85
2113
+ }
2114
+ },
2115
+ {
2116
+ "id": "route-line-active",
2117
+ "type": "line",
2118
+ "source": "route-active-step",
2119
+ "minzoom": 16.5,
2120
+ "layout": {
2121
+ "line-cap": "round",
2122
+ "line-join": "round"
2123
+ },
2124
+ "paint": {
2125
+ "line-color": "#01A91D",
2126
+ "line-width": [
2127
+ "interpolate", ["linear"], ["zoom"],
2128
+ 16.5, 5,
2129
+ 18.0, 7,
2130
+ 20.0, 9
2131
+ ],
2132
+ "line-opacity": 0.25
2133
+ }
2134
+ },
2094
2135
  {
2095
2136
  "id": "route-arrows",
2096
2137
  "type": "symbol",
@@ -2142,48 +2183,8 @@
2142
2183
  "paint": {
2143
2184
  "icon-opacity": 1
2144
2185
  }
2145
- },
2146
- {
2147
- "id": "route-line-active-halo",
2148
- "type": "line",
2149
- "source": "route-active-step",
2150
- "minzoom": 16.5,
2151
- "layout": {
2152
- "line-cap": "round",
2153
- "line-join": "round"
2154
- },
2155
- "paint": {
2156
- "line-color": "#FFFFFF",
2157
- "line-width": [
2158
- "interpolate", ["linear"], ["zoom"],
2159
- 16.5, 8,
2160
- 18.0, 11,
2161
- 20.0, 14
2162
- ],
2163
- "line-opacity": 0.85
2164
- }
2165
- },
2186
+ },
2166
2187
  {
2167
- "id": "route-line-active",
2168
- "type": "line",
2169
- "source": "route-active-step",
2170
- "minzoom": 16.5,
2171
- "layout": {
2172
- "line-cap": "round",
2173
- "line-join": "round"
2174
- },
2175
- "paint": {
2176
- "line-color": "#fdb81e",
2177
- "line-width": [
2178
- "interpolate", ["linear"], ["zoom"],
2179
- 16.5, 5,
2180
- 18.0, 7,
2181
- 20.0, 9
2182
- ],
2183
- "line-opacity": 1
2184
- }
2185
- },
2186
- {
2187
2188
  "id": "route-endpoint-source",
2188
2189
  "type": "circle",
2189
2190
  "source": "route-endpoints",
@@ -2262,6 +2263,21 @@
2262
2263
  "icon-translate-anchor": "viewport"
2263
2264
  }
2264
2265
  },
2266
+ {
2267
+ "id": "poi-route-start",
2268
+ "type": "symbol",
2269
+ "source": "route-end-data",
2270
+ "filter": ["==", ["get", "kind"], "start"],
2271
+ "layout": {
2272
+ "icon-image": "marker-start",
2273
+ "icon-anchor": "bottom",
2274
+ "icon-size": ["interpolate", ["linear"], ["zoom"], 15, 0.7, 16, 0.9, 18, 1, 20, 1.15, 22, 1.35],
2275
+ "icon-overlap": "always",
2276
+ "icon-ignore-placement": false,
2277
+ "icon-rotation-alignment": "viewport",
2278
+ "icon-pitch-alignment": "viewport"
2279
+ }
2280
+ },
2265
2281
  {
2266
2282
  "id": "poi-route-end-flag",
2267
2283
  "type": "symbol",