@minmaps-dev/mm-web-sdk 1.0.0-rc.49 → 1.0.0-rc.50
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +8 -0
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
- package/src/themes/alt3-hybrid-style.json +45 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minmaps-dev/mm-web-sdk",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.50",
|
|
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",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"typescript": "^5",
|
|
92
92
|
"vitest": "^2",
|
|
93
93
|
"@vitest/coverage-v8": "^2",
|
|
94
|
-
"@minmaps-dev/material-icon-set": "0.2.0-rc.
|
|
94
|
+
"@minmaps-dev/material-icon-set": "0.2.0-rc.5"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"build": "rimraf dist && rollup -c",
|
|
@@ -57,6 +57,10 @@
|
|
|
57
57
|
"type": "geojson",
|
|
58
58
|
"data": { "type": "FeatureCollection", "features": [] }
|
|
59
59
|
},
|
|
60
|
+
"venue-marker-data": {
|
|
61
|
+
"type": "geojson",
|
|
62
|
+
"data": { "type": "FeatureCollection", "features": [] }
|
|
63
|
+
},
|
|
60
64
|
"route-active-step": {
|
|
61
65
|
"type": "geojson",
|
|
62
66
|
"data": { "type": "FeatureCollection", "features": [] }
|
|
@@ -363,11 +367,12 @@
|
|
|
363
367
|
"filter": [
|
|
364
368
|
"all",
|
|
365
369
|
["!", ["to-boolean", ["get", "is_tunnel"]]],
|
|
370
|
+
["!", ["to-boolean", ["get", "is_link"]]],
|
|
366
371
|
["any", ["has", "shield_text"], ["has", "ref"]]
|
|
367
372
|
],
|
|
368
373
|
"layout": {
|
|
369
374
|
"symbol-placement": "line",
|
|
370
|
-
"symbol-spacing": 240,
|
|
375
|
+
"symbol-spacing": ["interpolate", ["linear"], ["zoom"], 13, 240, 17, 450],
|
|
371
376
|
"symbol-sort-key": 5,
|
|
372
377
|
"icon-image": [
|
|
373
378
|
"concat",
|
|
@@ -384,7 +389,7 @@
|
|
|
384
389
|
["in", ["slice", ["var", "st"], 1, 2], "0123456789"]
|
|
385
390
|
]
|
|
386
391
|
], "i",
|
|
387
|
-
["
|
|
392
|
+
["in", ["get", "network"], ["literal", ["US:US", "US"]]], "us",
|
|
388
393
|
["==", ["slice", ["var", "st"], 0, 2], "US"], "us",
|
|
389
394
|
["==", ["slice", ["var", "st"], 0, 2], "CR"], "cr",
|
|
390
395
|
"st"
|
|
@@ -507,7 +512,7 @@
|
|
|
507
512
|
"icon-pitch-alignment": "viewport",
|
|
508
513
|
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
509
514
|
"text-font": ["Noto Sans Bold"],
|
|
510
|
-
"text-size": ["interpolate", ["linear"], ["zoom"],
|
|
515
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 16.5, 13.5, 19, 15],
|
|
511
516
|
"text-offset": [0, 1.8],
|
|
512
517
|
"text-anchor": "top",
|
|
513
518
|
"text-optional": true,
|
|
@@ -561,9 +566,9 @@
|
|
|
561
566
|
"icon-padding": 4,
|
|
562
567
|
"icon-rotation-alignment": "viewport",
|
|
563
568
|
"icon-pitch-alignment": "viewport",
|
|
564
|
-
"text-field": ["coalesce", ["get", "name:en"], ["get", "name"]],
|
|
569
|
+
"text-field": ["step", ["zoom"], "", 16, ["coalesce", ["get", "name:en"], ["get", "name"]]],
|
|
565
570
|
"text-font": ["Noto Sans Bold"],
|
|
566
|
-
"text-size": ["interpolate", ["linear"], ["zoom"],
|
|
571
|
+
"text-size": ["interpolate", ["linear"], ["zoom"], 16.5, 11.5, 19, 13.5],
|
|
567
572
|
"text-offset": [0, 1.8],
|
|
568
573
|
"text-anchor": "top",
|
|
569
574
|
"text-optional": true,
|
|
@@ -702,16 +707,11 @@
|
|
|
702
707
|
"type": "fill",
|
|
703
708
|
"source": "indoor-data",
|
|
704
709
|
"minzoom": 15.8,
|
|
710
|
+
"maxzoom": 16.5,
|
|
705
711
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
706
712
|
"paint": {
|
|
707
713
|
"fill-color": "#162e51",
|
|
708
|
-
"fill-opacity":
|
|
709
|
-
"interpolate",
|
|
710
|
-
["linear"],
|
|
711
|
-
["zoom"],
|
|
712
|
-
15.8, 1,
|
|
713
|
-
16.5, 0
|
|
714
|
-
]
|
|
714
|
+
"fill-opacity": 1
|
|
715
715
|
}
|
|
716
716
|
},
|
|
717
717
|
{
|
|
@@ -1152,24 +1152,13 @@
|
|
|
1152
1152
|
"id": "building-extrusion",
|
|
1153
1153
|
"type": "fill-extrusion",
|
|
1154
1154
|
"source": "indoor-data",
|
|
1155
|
+
"maxzoom": 16.5,
|
|
1155
1156
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
1156
1157
|
"paint": {
|
|
1157
1158
|
"fill-extrusion-color": "#162e51",
|
|
1158
|
-
"fill-extrusion-height":
|
|
1159
|
-
"interpolate",
|
|
1160
|
-
["linear"],
|
|
1161
|
-
["zoom"],
|
|
1162
|
-
15.8, 15,
|
|
1163
|
-
16.5, 0
|
|
1164
|
-
],
|
|
1159
|
+
"fill-extrusion-height": 15,
|
|
1165
1160
|
"fill-extrusion-base": 0,
|
|
1166
|
-
"fill-extrusion-opacity":
|
|
1167
|
-
"interpolate",
|
|
1168
|
-
["linear"],
|
|
1169
|
-
["zoom"],
|
|
1170
|
-
15.8, 1,
|
|
1171
|
-
16.5, 0
|
|
1172
|
-
]
|
|
1161
|
+
"fill-extrusion-opacity": 1
|
|
1173
1162
|
}
|
|
1174
1163
|
},
|
|
1175
1164
|
{
|
|
@@ -1483,9 +1472,10 @@
|
|
|
1483
1472
|
],
|
|
1484
1473
|
"icon-allow-overlap": true,
|
|
1485
1474
|
"icon-ignore-placement": false,
|
|
1486
|
-
"text-field": ["get", "name"],
|
|
1475
|
+
"text-field": ["step", ["zoom"], "", 14.5, ["get", "name"]],
|
|
1487
1476
|
"text-size": [
|
|
1488
1477
|
"interpolate", ["linear"], ["zoom"],
|
|
1478
|
+
15, 14,
|
|
1489
1479
|
18, 16,
|
|
1490
1480
|
20, 18
|
|
1491
1481
|
],
|
|
@@ -1507,6 +1497,34 @@
|
|
|
1507
1497
|
"text-halo-blur": 0.5
|
|
1508
1498
|
}
|
|
1509
1499
|
},
|
|
1500
|
+
{
|
|
1501
|
+
"id": "venue-marker",
|
|
1502
|
+
"type": "symbol",
|
|
1503
|
+
"source": "venue-marker-data",
|
|
1504
|
+
"minzoom": 10,
|
|
1505
|
+
"maxzoom": 14.5,
|
|
1506
|
+
"layout": {
|
|
1507
|
+
"icon-image": "marker-venue",
|
|
1508
|
+
"icon-size": 0.75,
|
|
1509
|
+
"icon-allow-overlap": true,
|
|
1510
|
+
"icon-ignore-placement": false,
|
|
1511
|
+
"text-field": ["get", "name"],
|
|
1512
|
+
"text-size": 14,
|
|
1513
|
+
"text-anchor": "top",
|
|
1514
|
+
"text-offset": [0, 1.4],
|
|
1515
|
+
"text-font": ["Noto Sans Bold"],
|
|
1516
|
+
"text-letter-spacing": 0.04,
|
|
1517
|
+
"text-max-width": 10,
|
|
1518
|
+
"text-allow-overlap": true,
|
|
1519
|
+
"text-padding": 4
|
|
1520
|
+
},
|
|
1521
|
+
"paint": {
|
|
1522
|
+
"text-color": "#162e51",
|
|
1523
|
+
"text-halo-color": "#fffffe",
|
|
1524
|
+
"text-halo-width": 1.4,
|
|
1525
|
+
"text-halo-blur": 0.5
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1510
1528
|
|
|
1511
1529
|
{
|
|
1512
1530
|
"id": "poi-entrance-exit-icons",
|