@minmaps-dev/mm-web-sdk 1.0.0-rc.30 → 1.0.0-rc.31

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.30",
3
+ "version": "1.0.0-rc.31",
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": "#FAF3E2",
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": "#F0E6D1"
289
+ "fill-color": "#d7dade"
284
290
  }
285
291
  },
286
292
 
@@ -315,38 +321,7 @@
315
321
  "minzoom": 16.5,
316
322
  "filter": ["==", ["get", "featureType"], "Units"],
317
323
  "paint": {
318
- "fill-color": [
319
- "case",
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"],
350
325
  "fill-opacity": [
351
326
  "interpolate",
352
327
  ["linear"],
@@ -367,7 +342,7 @@
367
342
  "minzoom": 16.5,
368
343
  "filter": ["==", ["get", "featureType"], "Units"],
369
344
  "layout": {
370
- "visibility": "none",
345
+ "visibility": "visible",
371
346
  "line-join": "round",
372
347
  "line-cap": "round"
373
348
  },
@@ -613,7 +588,7 @@
613
588
  ["==", ["get", "featureType"], "Corridor"]
614
589
  ],
615
590
  "paint": {
616
- "line-color": "#BCAAA4",
591
+ "line-color": "#c6cace",
617
592
  "line-width": [
618
593
  "interpolate",
619
594
  ["linear"],
@@ -635,30 +610,30 @@
635
610
  "minzoom": 16.5,
636
611
  "filter": ["==", ["get", "featureType"], "Boundary"],
637
612
  "paint": {
638
- "line-color": "#263238",
613
+ "line-color": "#9aa4b0",
639
614
  "line-width": [
640
615
  "interpolate",
641
616
  ["linear"],
642
617
  ["zoom"],
643
618
  12,
644
- 2,
619
+ 1.5,
645
620
  15,
646
- 2.5,
621
+ 1.8,
647
622
  18,
648
- 3,
623
+ 2,
649
624
  20,
650
- 3.5
625
+ 2.2
651
626
  ],
652
627
  "line-opacity": [
653
628
  "interpolate",
654
629
  ["linear"],
655
630
  ["zoom"],
656
631
  12,
657
- 0.7,
632
+ 0.4,
658
633
  17,
659
- 0.85,
634
+ 0.5,
660
635
  18,
661
- 1
636
+ 0.55
662
637
  ]
663
638
  }
664
639
  },
@@ -734,6 +709,45 @@
734
709
  ]
735
710
  }
736
711
  },
712
+ {
713
+ "id": "units-3d-extrusion",
714
+ "type": "fill-extrusion",
715
+ "source": "indoor-data",
716
+ "minzoom": 16.5,
717
+ "filter": ["==", ["get", "featureType"], "UnitBlock"],
718
+ "paint": {
719
+ "fill-extrusion-color": [
720
+ "coalesce",
721
+ ["get", "zoneColor"],
722
+ [
723
+ "match",
724
+ ["get", "category"],
725
+ "healthcare", "#73b3e7",
726
+ "surgical", "#73b3e7",
727
+ "waiting", "#73b3e7",
728
+ "diagnostic", "#97d4ea",
729
+ "amenities", "#97d4ea",
730
+ "emergency", "#f2938c",
731
+ "retail", "#fee685",
732
+ "fnb", "#fee685",
733
+ "admin", "#dfe1e2",
734
+ "staff", "#dfe1e2",
735
+ "security", "#dfe1e2",
736
+ "#e8ecf1"
737
+ ]
738
+ ],
739
+ "fill-extrusion-height": [
740
+ "interpolate",
741
+ ["linear"],
742
+ ["zoom"],
743
+ 16.5, 0,
744
+ 18, 2.2
745
+ ],
746
+ "fill-extrusion-base": 0,
747
+ "fill-extrusion-vertical-gradient": true,
748
+ "fill-extrusion-opacity": 1
749
+ }
750
+ },
737
751
 
738
752
  {
739
753
  "id": "units-wall-extrusion",
@@ -745,8 +759,11 @@
745
759
  ["==", ["get", "featureType"], "UnitWalls"],
746
760
  ["!", ["has", "custom_height"]]
747
761
  ],
762
+ "layout": {
763
+ "visibility": "none"
764
+ },
748
765
  "paint": {
749
- "fill-extrusion-color": "#c4c8cb",
766
+ "fill-extrusion-color": "#e6e9ee",
750
767
  "fill-extrusion-height": [
751
768
  "interpolate",
752
769
  ["linear"],
@@ -772,8 +789,11 @@
772
789
  "source": "unit-walls",
773
790
  "minzoom": 16.5,
774
791
  "filter": ["has", "custom_height"],
792
+ "layout": {
793
+ "visibility": "none"
794
+ },
775
795
  "paint": {
776
- "fill-extrusion-color": "#c4c8cb",
796
+ "fill-extrusion-color": "#e6e9ee",
777
797
  "fill-extrusion-height": [
778
798
  "interpolate",
779
799
  ["linear"],
@@ -1008,8 +1028,31 @@
1008
1028
  "icon-ignore-placement": true,
1009
1029
  "icon-size": [
1010
1030
  "interpolate", ["linear"], ["zoom"],
1011
- 16.5, 0.42,
1012
- 18.0, 0.62,
1031
+ 16.5, 0.55,
1032
+ 18.0, 0.75,
1033
+ 20.0, 0.85
1034
+ ]
1035
+ },
1036
+ "paint": {
1037
+ "icon-opacity": 1
1038
+ }
1039
+ },
1040
+ {
1041
+ "id": "route-arrows-flow",
1042
+ "type": "symbol",
1043
+ "source": "route-arrows-flow",
1044
+ "minzoom": 16.5,
1045
+ "layout": {
1046
+ "icon-image": "route-arrow",
1047
+ "icon-rotate": ["get", "rotate"],
1048
+ "icon-rotation-alignment": "map",
1049
+ "icon-pitch-alignment": "map",
1050
+ "icon-allow-overlap": true,
1051
+ "icon-ignore-placement": true,
1052
+ "icon-size": [
1053
+ "interpolate", ["linear"], ["zoom"],
1054
+ 16.5, 0.55,
1055
+ 18.0, 0.75,
1013
1056
  20.0, 0.85
1014
1057
  ]
1015
1058
  },