@minmaps-dev/mm-web-sdk 1.0.0-rc.30 → 1.0.0-rc.32
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 +137 -2
- 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 +59 -1
- 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 +135 -48
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.32",
|
|
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",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@turf/turf": "^7",
|
|
55
|
-
"maplibre-gl": "^4",
|
|
55
|
+
"maplibre-gl": "^4 || ^5",
|
|
56
56
|
"pmtiles": "^4",
|
|
57
57
|
"react": "^18 || ^19",
|
|
58
58
|
"react-dom": "^18 || ^19"
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"sprite": "http://localhost:4000/sprites/sprite",
|
|
10
10
|
"glyphs": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
|
|
11
|
+
"light": {
|
|
12
|
+
"anchor": "viewport",
|
|
13
|
+
"color": "#fff4e8",
|
|
14
|
+
"intensity": 0.35,
|
|
15
|
+
"position": [1.5, 210, 20]
|
|
16
|
+
},
|
|
11
17
|
"sources": {
|
|
12
18
|
"protomaps": {
|
|
13
19
|
"type": "vector",
|
|
@@ -248,7 +254,7 @@
|
|
|
248
254
|
"minzoom": 16.5,
|
|
249
255
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
250
256
|
"paint": {
|
|
251
|
-
"fill-color": "#
|
|
257
|
+
"fill-color": "#edeef1",
|
|
252
258
|
"fill-opacity": 1
|
|
253
259
|
}
|
|
254
260
|
},
|
|
@@ -280,7 +286,7 @@
|
|
|
280
286
|
["==", ["get", "featureType"], "Corridor"]
|
|
281
287
|
],
|
|
282
288
|
"paint": {
|
|
283
|
-
"fill-color": "#
|
|
289
|
+
"fill-color": "#d7dade"
|
|
284
290
|
}
|
|
285
291
|
},
|
|
286
292
|
|
|
@@ -315,38 +321,8 @@
|
|
|
315
321
|
"minzoom": 16.5,
|
|
316
322
|
"filter": ["==", ["get", "featureType"], "Units"],
|
|
317
323
|
"paint": {
|
|
318
|
-
"fill-color": [
|
|
319
|
-
|
|
320
|
-
["has", "category"],
|
|
321
|
-
[
|
|
322
|
-
"match",
|
|
323
|
-
["get", "category"],
|
|
324
|
-
"healthcare",
|
|
325
|
-
"#73b3e7",
|
|
326
|
-
"surgical",
|
|
327
|
-
"#73b3e7",
|
|
328
|
-
"waiting",
|
|
329
|
-
"#73b3e7",
|
|
330
|
-
"diagnostic",
|
|
331
|
-
"#97d4ea",
|
|
332
|
-
"amenities",
|
|
333
|
-
"#97d4ea",
|
|
334
|
-
"emergency",
|
|
335
|
-
"#f2938c",
|
|
336
|
-
"retail",
|
|
337
|
-
"#fee685",
|
|
338
|
-
"fnb",
|
|
339
|
-
"#fee685",
|
|
340
|
-
"admin",
|
|
341
|
-
"#dfe1e2",
|
|
342
|
-
"staff",
|
|
343
|
-
"#dfe1e2",
|
|
344
|
-
"security",
|
|
345
|
-
"#dfe1e2",
|
|
346
|
-
"#73b3e7"
|
|
347
|
-
],
|
|
348
|
-
"#73b3e7"
|
|
349
|
-
],
|
|
324
|
+
"fill-color": ["coalesce", ["get", "zoneColor"], "#f7f8fa"],
|
|
325
|
+
"fill-color-transition": { "duration": 350 },
|
|
350
326
|
"fill-opacity": [
|
|
351
327
|
"interpolate",
|
|
352
328
|
["linear"],
|
|
@@ -367,7 +343,7 @@
|
|
|
367
343
|
"minzoom": 16.5,
|
|
368
344
|
"filter": ["==", ["get", "featureType"], "Units"],
|
|
369
345
|
"layout": {
|
|
370
|
-
"visibility": "
|
|
346
|
+
"visibility": "visible",
|
|
371
347
|
"line-join": "round",
|
|
372
348
|
"line-cap": "round"
|
|
373
349
|
},
|
|
@@ -613,7 +589,7 @@
|
|
|
613
589
|
["==", ["get", "featureType"], "Corridor"]
|
|
614
590
|
],
|
|
615
591
|
"paint": {
|
|
616
|
-
"line-color": "#
|
|
592
|
+
"line-color": "#c6cace",
|
|
617
593
|
"line-width": [
|
|
618
594
|
"interpolate",
|
|
619
595
|
["linear"],
|
|
@@ -635,30 +611,30 @@
|
|
|
635
611
|
"minzoom": 16.5,
|
|
636
612
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
637
613
|
"paint": {
|
|
638
|
-
"line-color": "#
|
|
614
|
+
"line-color": "#9aa4b0",
|
|
639
615
|
"line-width": [
|
|
640
616
|
"interpolate",
|
|
641
617
|
["linear"],
|
|
642
618
|
["zoom"],
|
|
643
619
|
12,
|
|
644
|
-
|
|
620
|
+
1.5,
|
|
645
621
|
15,
|
|
646
|
-
|
|
622
|
+
1.8,
|
|
647
623
|
18,
|
|
648
|
-
|
|
624
|
+
2,
|
|
649
625
|
20,
|
|
650
|
-
|
|
626
|
+
2.2
|
|
651
627
|
],
|
|
652
628
|
"line-opacity": [
|
|
653
629
|
"interpolate",
|
|
654
630
|
["linear"],
|
|
655
631
|
["zoom"],
|
|
656
632
|
12,
|
|
657
|
-
0.
|
|
633
|
+
0.4,
|
|
658
634
|
17,
|
|
659
|
-
0.
|
|
635
|
+
0.5,
|
|
660
636
|
18,
|
|
661
|
-
|
|
637
|
+
0.55
|
|
662
638
|
]
|
|
663
639
|
}
|
|
664
640
|
},
|
|
@@ -734,6 +710,86 @@
|
|
|
734
710
|
]
|
|
735
711
|
}
|
|
736
712
|
},
|
|
713
|
+
{
|
|
714
|
+
"id": "units-3d-extrusion",
|
|
715
|
+
"type": "fill-extrusion",
|
|
716
|
+
"source": "indoor-data",
|
|
717
|
+
"minzoom": 16.5,
|
|
718
|
+
"filter": ["==", ["get", "featureType"], "UnitBlock"],
|
|
719
|
+
"paint": {
|
|
720
|
+
"fill-extrusion-color": [
|
|
721
|
+
"coalesce",
|
|
722
|
+
["get", "zoneColor"],
|
|
723
|
+
[
|
|
724
|
+
"match",
|
|
725
|
+
["get", "category"],
|
|
726
|
+
"healthcare", "#73b3e7",
|
|
727
|
+
"surgical", "#73b3e7",
|
|
728
|
+
"waiting", "#73b3e7",
|
|
729
|
+
"diagnostic", "#97d4ea",
|
|
730
|
+
"amenities", "#97d4ea",
|
|
731
|
+
"emergency", "#f2938c",
|
|
732
|
+
"retail", "#fee685",
|
|
733
|
+
"fnb", "#fee685",
|
|
734
|
+
"admin", "#dfe1e2",
|
|
735
|
+
"staff", "#dfe1e2",
|
|
736
|
+
"security", "#dfe1e2",
|
|
737
|
+
"#e8ecf1"
|
|
738
|
+
]
|
|
739
|
+
],
|
|
740
|
+
"fill-extrusion-color-transition": { "duration": 350 },
|
|
741
|
+
"fill-extrusion-height": [
|
|
742
|
+
"interpolate",
|
|
743
|
+
["linear"],
|
|
744
|
+
["zoom"],
|
|
745
|
+
16.5, 0,
|
|
746
|
+
18, 2.2
|
|
747
|
+
],
|
|
748
|
+
"fill-extrusion-base": 0,
|
|
749
|
+
"fill-extrusion-vertical-gradient": true,
|
|
750
|
+
"fill-extrusion-opacity": 1
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"id": "unit-highlight-block",
|
|
755
|
+
"type": "fill-extrusion",
|
|
756
|
+
"source": "poi-highlight-data",
|
|
757
|
+
"minzoom": 16.5,
|
|
758
|
+
"filter": ["==", ["geometry-type"], "Polygon"],
|
|
759
|
+
"paint": {
|
|
760
|
+
"fill-extrusion-color": [
|
|
761
|
+
"coalesce",
|
|
762
|
+
["get", "zoneColor"],
|
|
763
|
+
[
|
|
764
|
+
"match",
|
|
765
|
+
["get", "category"],
|
|
766
|
+
"healthcare", "#73b3e7",
|
|
767
|
+
"surgical", "#73b3e7",
|
|
768
|
+
"waiting", "#73b3e7",
|
|
769
|
+
"diagnostic", "#97d4ea",
|
|
770
|
+
"amenities", "#97d4ea",
|
|
771
|
+
"emergency", "#f2938c",
|
|
772
|
+
"retail", "#fee685",
|
|
773
|
+
"fnb", "#fee685",
|
|
774
|
+
"admin", "#dfe1e2",
|
|
775
|
+
"staff", "#dfe1e2",
|
|
776
|
+
"security", "#dfe1e2",
|
|
777
|
+
"#005ea2"
|
|
778
|
+
]
|
|
779
|
+
],
|
|
780
|
+
"fill-extrusion-color-transition": { "duration": 350 },
|
|
781
|
+
"fill-extrusion-height": [
|
|
782
|
+
"interpolate",
|
|
783
|
+
["linear"],
|
|
784
|
+
["zoom"],
|
|
785
|
+
16.5, 0,
|
|
786
|
+
18, 2.6
|
|
787
|
+
],
|
|
788
|
+
"fill-extrusion-base": 0,
|
|
789
|
+
"fill-extrusion-vertical-gradient": true,
|
|
790
|
+
"fill-extrusion-opacity": 1
|
|
791
|
+
}
|
|
792
|
+
},
|
|
737
793
|
|
|
738
794
|
{
|
|
739
795
|
"id": "units-wall-extrusion",
|
|
@@ -745,8 +801,11 @@
|
|
|
745
801
|
["==", ["get", "featureType"], "UnitWalls"],
|
|
746
802
|
["!", ["has", "custom_height"]]
|
|
747
803
|
],
|
|
804
|
+
"layout": {
|
|
805
|
+
"visibility": "none"
|
|
806
|
+
},
|
|
748
807
|
"paint": {
|
|
749
|
-
"fill-extrusion-color": "#
|
|
808
|
+
"fill-extrusion-color": "#e6e9ee",
|
|
750
809
|
"fill-extrusion-height": [
|
|
751
810
|
"interpolate",
|
|
752
811
|
["linear"],
|
|
@@ -772,8 +831,11 @@
|
|
|
772
831
|
"source": "unit-walls",
|
|
773
832
|
"minzoom": 16.5,
|
|
774
833
|
"filter": ["has", "custom_height"],
|
|
834
|
+
"layout": {
|
|
835
|
+
"visibility": "none"
|
|
836
|
+
},
|
|
775
837
|
"paint": {
|
|
776
|
-
"fill-extrusion-color": "#
|
|
838
|
+
"fill-extrusion-color": "#e6e9ee",
|
|
777
839
|
"fill-extrusion-height": [
|
|
778
840
|
"interpolate",
|
|
779
841
|
["linear"],
|
|
@@ -1008,8 +1070,31 @@
|
|
|
1008
1070
|
"icon-ignore-placement": true,
|
|
1009
1071
|
"icon-size": [
|
|
1010
1072
|
"interpolate", ["linear"], ["zoom"],
|
|
1011
|
-
16.5, 0.
|
|
1012
|
-
18.0, 0.
|
|
1073
|
+
16.5, 0.55,
|
|
1074
|
+
18.0, 0.75,
|
|
1075
|
+
20.0, 0.85
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1078
|
+
"paint": {
|
|
1079
|
+
"icon-opacity": 1
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"id": "route-arrows-flow",
|
|
1084
|
+
"type": "symbol",
|
|
1085
|
+
"source": "route-arrows-flow",
|
|
1086
|
+
"minzoom": 16.5,
|
|
1087
|
+
"layout": {
|
|
1088
|
+
"icon-image": "route-arrow",
|
|
1089
|
+
"icon-rotate": ["get", "rotate"],
|
|
1090
|
+
"icon-rotation-alignment": "map",
|
|
1091
|
+
"icon-pitch-alignment": "map",
|
|
1092
|
+
"icon-allow-overlap": true,
|
|
1093
|
+
"icon-ignore-placement": true,
|
|
1094
|
+
"icon-size": [
|
|
1095
|
+
"interpolate", ["linear"], ["zoom"],
|
|
1096
|
+
16.5, 0.55,
|
|
1097
|
+
18.0, 0.75,
|
|
1013
1098
|
20.0, 0.85
|
|
1014
1099
|
]
|
|
1015
1100
|
},
|
|
@@ -1522,6 +1607,7 @@
|
|
|
1522
1607
|
"id": "poi-highlight-ring",
|
|
1523
1608
|
"type": "circle",
|
|
1524
1609
|
"source": "poi-highlight-data",
|
|
1610
|
+
"filter": ["==", ["geometry-type"], "Point"],
|
|
1525
1611
|
"paint": {
|
|
1526
1612
|
"circle-radius": 14,
|
|
1527
1613
|
"circle-color": "#005ea2",
|
|
@@ -1533,6 +1619,7 @@
|
|
|
1533
1619
|
"id": "poi-highlight-core",
|
|
1534
1620
|
"type": "circle",
|
|
1535
1621
|
"source": "poi-highlight-data",
|
|
1622
|
+
"filter": ["==", ["geometry-type"], "Point"],
|
|
1536
1623
|
"paint": {
|
|
1537
1624
|
"circle-radius": 9,
|
|
1538
1625
|
"circle-color": "#005ea2",
|