@minmaps-dev/mm-web-sdk 1.0.0-rc.26 → 1.0.0-rc.28

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.26",
3
+ "version": "1.0.0-rc.28",
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",
@@ -83,7 +83,7 @@
83
83
  "typescript": "^5",
84
84
  "vitest": "^2",
85
85
  "@vitest/coverage-v8": "^2",
86
- "@minmaps-dev/material-icon-set": "0.2.0-rc.1"
86
+ "@minmaps-dev/material-icon-set": "0.2.0-rc.2"
87
87
  },
88
88
  "scripts": {
89
89
  "build": "rimraf dist && rollup -c",
@@ -1061,13 +1061,20 @@
1061
1061
  "layout": {
1062
1062
  "icon-image": "wheelchair-accessible",
1063
1063
  "icon-size": [
1064
- "interpolate", ["linear"], ["zoom"],
1065
- 15, 0.4,
1066
- 17, 0.6,
1067
- 19, 0.8
1064
+ "interpolate", ["exponential", 1.3], ["zoom"],
1065
+ 14, 0.28,
1066
+ 16, 0.4,
1067
+ 18, 0.58,
1068
+ 20, 0.85,
1069
+ 22, 1.2
1068
1070
  ],
1069
1071
  "icon-allow-overlap": false,
1070
- "icon-padding": 4
1072
+ "icon-padding": [
1073
+ "interpolate", ["linear"], ["zoom"],
1074
+ 15, 8,
1075
+ 17, 4,
1076
+ 19, 2
1077
+ ]
1071
1078
  }
1072
1079
  },
1073
1080
 
@@ -1080,8 +1087,9 @@
1080
1087
  "paint": {
1081
1088
  "circle-radius": [
1082
1089
  "interpolate", ["linear"], ["zoom"],
1083
- 16, 6,
1084
- 18, 8,
1090
+ 14, 3,
1091
+ 16, 5,
1092
+ 18, 7,
1085
1093
  20, 10
1086
1094
  ],
1087
1095
  "circle-color": "#ffffff",
@@ -1098,16 +1106,23 @@
1098
1106
  "filter": ["all", ["==", ["get", "poiType"], "destination"], ["has", "iconId"]],
1099
1107
  "minzoom": 16.5,
1100
1108
  "layout": {
1101
- "symbol-sort-key": 2,
1109
+ "symbol-sort-key": ["get", "rank"],
1102
1110
  "icon-image": ["get", "iconId"],
1103
1111
  "icon-size": [
1104
- "interpolate", ["linear"], ["zoom"],
1105
- 16.5, 0.5,
1106
- 18, 0.62,
1107
- 20, 0.82
1112
+ "interpolate", ["exponential", 1.3], ["zoom"],
1113
+ 14, 0.28,
1114
+ 16, 0.4,
1115
+ 18, 0.58,
1116
+ 20, 0.85,
1117
+ 22, 1.2
1108
1118
  ],
1109
1119
  "icon-allow-overlap": false,
1110
- "icon-padding": 4,
1120
+ "icon-padding": [
1121
+ "interpolate", ["linear"], ["zoom"],
1122
+ 15, 8,
1123
+ 17, 4,
1124
+ 19, 2
1125
+ ],
1111
1126
  "icon-optional": false,
1112
1127
  "icon-rotation-alignment": "viewport",
1113
1128
  "icon-pitch-alignment": "viewport"
@@ -1198,16 +1213,23 @@
1198
1213
  ],
1199
1214
  "minzoom": 15,
1200
1215
  "layout": {
1201
- "symbol-sort-key": 1,
1216
+ "symbol-sort-key": ["get", "rank"],
1202
1217
  "icon-image": ["get", "iconId"],
1203
1218
  "icon-size": [
1204
- "interpolate", ["linear"], ["zoom"],
1205
- 16.5, 0.5,
1206
- 18, 0.6,
1207
- 20, 0.8
1219
+ "interpolate", ["exponential", 1.3], ["zoom"],
1220
+ 14, 0.28,
1221
+ 16, 0.4,
1222
+ 18, 0.58,
1223
+ 20, 0.85,
1224
+ 22, 1.2
1208
1225
  ],
1209
1226
  "icon-allow-overlap": false,
1210
- "icon-padding": 4,
1227
+ "icon-padding": [
1228
+ "interpolate", ["linear"], ["zoom"],
1229
+ 15, 8,
1230
+ 17, 4,
1231
+ 19, 2
1232
+ ],
1211
1233
  "icon-optional": false,
1212
1234
  "icon-rotation-alignment": "viewport",
1213
1235
  "icon-pitch-alignment": "viewport",
@@ -1253,16 +1275,23 @@
1253
1275
  ],
1254
1276
  "minzoom": 14,
1255
1277
  "layout": {
1256
- "symbol-sort-key": 2,
1278
+ "symbol-sort-key": ["get", "rank"],
1257
1279
  "icon-image": ["get", "iconId"],
1258
1280
  "icon-size": [
1259
- "interpolate", ["linear"], ["zoom"],
1260
- 16.5, 0.5,
1261
- 18, 0.6,
1262
- 20, 0.8
1281
+ "interpolate", ["exponential", 1.3], ["zoom"],
1282
+ 14, 0.28,
1283
+ 16, 0.4,
1284
+ 18, 0.58,
1285
+ 20, 0.85,
1286
+ 22, 1.2
1263
1287
  ],
1264
1288
  "icon-allow-overlap": false,
1265
- "icon-padding": 4,
1289
+ "icon-padding": [
1290
+ "interpolate", ["linear"], ["zoom"],
1291
+ 15, 8,
1292
+ 17, 4,
1293
+ 19, 2
1294
+ ],
1266
1295
  "icon-optional": false,
1267
1296
  "icon-rotation-alignment": "viewport",
1268
1297
  "icon-pitch-alignment": "viewport",
@@ -1304,20 +1333,28 @@
1304
1333
  ["==", ["index-of", "exit", ["get", "keywords"]], -1],
1305
1334
  ["==", ["index-of", "door", ["get", "keywords"]], -1],
1306
1335
  ["==", ["index-of", "parking", ["get", "keywords"]], -1],
1307
- ["==", ["index-of", "park", ["get", "keywords"]], -1]
1336
+ ["==", ["index-of", "park", ["get", "keywords"]], -1],
1337
+ ["<=", ["get", "rank"], ["step", ["zoom"], 0, 17, 2, 18, 3]]
1308
1338
  ],
1309
1339
  "minzoom": 16.5,
1310
1340
  "layout": {
1311
- "symbol-sort-key": 3,
1341
+ "symbol-sort-key": ["get", "rank"],
1312
1342
  "icon-image": ["get", "iconId"],
1313
1343
  "icon-size": [
1314
- "interpolate", ["linear"], ["zoom"],
1315
- 16.5, 0.5,
1316
- 18, 0.6,
1317
- 20, 0.8
1344
+ "interpolate", ["exponential", 1.3], ["zoom"],
1345
+ 14, 0.28,
1346
+ 16, 0.4,
1347
+ 18, 0.58,
1348
+ 20, 0.85,
1349
+ 22, 1.2
1318
1350
  ],
1319
1351
  "icon-allow-overlap": false,
1320
- "icon-padding": 4,
1352
+ "icon-padding": [
1353
+ "interpolate", ["linear"], ["zoom"],
1354
+ 15, 8,
1355
+ 17, 4,
1356
+ 19, 2
1357
+ ],
1321
1358
  "icon-optional": false,
1322
1359
  "icon-rotation-alignment": "viewport",
1323
1360
  "icon-pitch-alignment": "viewport",