@minmaps-dev/mm-web-sdk 1.0.0-rc.35 → 1.0.0-rc.37

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.
@@ -37,6 +37,10 @@
37
37
  "type": "geojson",
38
38
  "data": { "type": "FeatureCollection", "features": [] }
39
39
  },
40
+ "route-end-data": {
41
+ "type": "geojson",
42
+ "data": { "type": "FeatureCollection", "features": [] }
43
+ },
40
44
  "poi-highlight-data": {
41
45
  "type": "geojson",
42
46
  "data": { "type": "FeatureCollection", "features": [] }
@@ -639,39 +643,6 @@
639
643
 
640
644
  }
641
645
  },
642
- {
643
- "id": "pattern-grass",
644
- "type": "fill",
645
- "source": "indoor-data",
646
-
647
- "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
648
- "paint": {
649
- "fill-color": "#B6D0AE",
650
- "fill-opacity": 1
651
- }
652
- },
653
- {
654
- "id": "pattern-trees",
655
- "type": "fill",
656
- "source": "indoor-data",
657
- "minzoom": 16.5,
658
- "filter": ["==", ["get", "featureType"], "Pattern-Trees"],
659
- "paint": {
660
- "fill-color": "#7D9F64",
661
- "fill-opacity": 0.8
662
- }
663
- },
664
- {
665
- "id": "pattern-pavement",
666
- "type": "fill",
667
- "source": "indoor-data",
668
- "minzoom": 16.5,
669
- "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
670
- "paint": {
671
- "fill-color": "#9E9E9E"
672
- }
673
- },
674
-
675
646
  {
676
647
  "id": "pattern-outdoor-terrace",
677
648
  "type": "fill",
@@ -707,12 +678,10 @@
707
678
  "line-dasharray": [3, 2]
708
679
  }
709
680
  },
710
-
711
681
  {
712
682
  "id": "boundary-fill",
713
683
  "type": "fill",
714
684
  "source": "indoor-data",
715
- "minzoom": 16.5,
716
685
  "filter": ["==", ["get", "featureType"], "Boundary"],
717
686
  "paint": {
718
687
  "fill-color": "#162e51",
@@ -736,6 +705,16 @@
736
705
  ]
737
706
  }
738
707
  },
708
+ {
709
+ "id": "pattern-pavement",
710
+ "type": "fill",
711
+ "source": "indoor-data",
712
+ "minzoom": 16.5,
713
+ "filter": ["==", ["get", "featureType"], "Pattern-Pavement"],
714
+ "paint": {
715
+ "fill-color": "#adadad"
716
+ }
717
+ },
739
718
  {
740
719
  "id": "corridors-fill",
741
720
  "type": "fill",
@@ -750,8 +729,69 @@
750
729
  "fill-color": "#f0f0f0"
751
730
  }
752
731
  },
753
-
754
-
732
+ {
733
+ "id": "pattern-grass",
734
+ "type": "fill",
735
+ "source": "indoor-data",
736
+
737
+ "filter": ["==", ["get", "featureType"], "Pattern-Grass"],
738
+ "paint": {
739
+ "fill-color": "#B6D0AE",
740
+ "fill-opacity": 1
741
+ }
742
+ },
743
+ {
744
+ "id": "pattern-trees",
745
+ "type": "fill",
746
+ "source": "indoor-data",
747
+ "minzoom": 16.5,
748
+ "filter": ["==", ["get", "featureType"], "Pattern-Trees"],
749
+ "paint": {
750
+ "fill-color": "#7D9F64",
751
+ "fill-opacity": 1
752
+ }
753
+ },
754
+ {
755
+ "id": "custom-artLayer-5-fill",
756
+ "type": "fill",
757
+ "source": "indoor-data",
758
+ "minzoom": 16.5,
759
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-5"],
760
+ "paint": {
761
+ "fill-color": "#DDE9F0",
762
+ "fill-opacity": 0.8
763
+ }
764
+ },
765
+ {
766
+ "id": "custom-artLayer-4-fill",
767
+ "type": "fill",
768
+ "source": "indoor-data",
769
+ "minzoom": 16.5,
770
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-4"],
771
+ "paint": {
772
+ "fill-color": "#D1D1D1"
773
+ }
774
+ },
775
+ {
776
+ "id": "custom-artLayer-2-fill",
777
+ "type": "fill",
778
+ "source": "indoor-data",
779
+ "minzoom": 16.5,
780
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-2"],
781
+ "paint": {
782
+ "fill-color": "#B7C3CB"
783
+ }
784
+ },
785
+ {
786
+ "id": "custom-artLayer-1-fill",
787
+ "type": "fill",
788
+ "source": "indoor-data",
789
+ "minzoom": 16.5,
790
+ "filter": ["==", ["get", "featureType"], "CustomArtLayer-1"],
791
+ "paint": {
792
+ "fill-color": "#B7C3CB"
793
+ }
794
+ },
755
795
  {
756
796
  "id": "units-fill",
757
797
  "type": "fill",
@@ -770,7 +810,7 @@
770
810
  17,
771
811
  0.92,
772
812
  19,
773
- 0.95
813
+ 1
774
814
  ]
775
815
  }
776
816
  },
@@ -799,7 +839,7 @@
799
839
  "filter": ["==", ["get", "featureType"], "Back-of-house"],
800
840
  "paint": {
801
841
  "fill-color": "#e6e6e2",
802
- "fill-opacity": 0.7
842
+ "fill-opacity": 1
803
843
  }
804
844
  },
805
845
 
@@ -814,7 +854,7 @@
814
854
  "line-cap": "round"
815
855
  },
816
856
  "paint": {
817
- "line-color": "#b0b1b5",
857
+ "line-color": "#121213",
818
858
  "line-width": [
819
859
  "interpolate",
820
860
  ["linear"],
@@ -826,7 +866,7 @@
826
866
  20,
827
867
  1.4
828
868
  ],
829
- "line-opacity": 0.9
869
+ "line-opacity": 1
830
870
  }
831
871
  },
832
872
 
@@ -876,7 +916,8 @@
876
916
  "filter": ["==", ["get", "featureType"], "Obstacles"],
877
917
  "paint": {
878
918
  "fill-color": "#e8e9ed",
879
- "fill-opacity": 1
919
+ "fill-opacity": 1,
920
+ "fill-outline-color": "#7f7f7f"
880
921
  }
881
922
  },
882
923
  {
@@ -890,7 +931,7 @@
890
931
  "line-cap": "round"
891
932
  },
892
933
  "paint": {
893
- "line-color": "#98999D",
934
+ "line-color": "#7f7f7f",
894
935
  "line-width": [
895
936
  "interpolate",
896
937
  ["linear"],
@@ -917,8 +958,9 @@
917
958
  ["literal", ["Escalators", "Stairs", "Elevators"]]
918
959
  ],
919
960
  "paint": {
920
- "fill-color": "#112f4e",
921
- "fill-opacity": 1
961
+ "fill-color": "#a9aeb1",
962
+ "fill-opacity": 1,
963
+ "fill-outline-color": "#053851"
922
964
  }
923
965
  },
924
966
  {
@@ -936,19 +978,19 @@
936
978
  "line-cap": "round"
937
979
  },
938
980
  "paint": {
939
- "line-color": "#162e51",
981
+ "line-color": "#4A4C4D",
940
982
  "line-width": [
941
983
  "interpolate",
942
984
  ["linear"],
943
985
  ["zoom"],
944
986
  16,
945
- 0.6,
987
+ 1,
946
988
  18,
947
- 1.0,
989
+ 1.5,
948
990
  20,
949
- 1.4
991
+ 4
950
992
  ],
951
- "line-opacity": 0.9
993
+ "line-opacity": 1
952
994
  }
953
995
  },
954
996
 
@@ -973,7 +1015,7 @@
973
1015
  "filter": ["==", ["get", "featureType"], "Pattern-Lounge"],
974
1016
  "paint": {
975
1017
  "fill-color": "#ddd2e0",
976
- "fill-opacity": 0.5
1018
+ "fill-opacity": 1
977
1019
  }
978
1020
  },
979
1021
 
@@ -985,7 +1027,7 @@
985
1027
  "filter": ["==", ["get", "featureType"], "Pattern-Indoor-FoodCourt-Seating"],
986
1028
  "paint": {
987
1029
  "fill-color": "#f3e4c4",
988
- "fill-opacity": 0.6
1030
+ "fill-opacity": 1
989
1031
  }
990
1032
  },
991
1033
 
@@ -1083,7 +1125,7 @@
1083
1125
  "filter": ["==", ["get", "featureType"], "Interior-ParkingLots"],
1084
1126
  "paint": {
1085
1127
  "fill-color": "#757575",
1086
- "fill-opacity": 0.8
1128
+ "fill-opacity": 1
1087
1129
  }
1088
1130
  },
1089
1131
  {
@@ -1251,7 +1293,7 @@
1251
1293
  "type": "fill-extrusion",
1252
1294
  "source": "indoor-data",
1253
1295
  "minzoom": 16.5,
1254
- "filter": ["==", ["get", "featureType"], "Back-of-house"],
1296
+ "filter": ["==", ["get", "featureType"], "Back-of-houseBlock"],
1255
1297
  "paint": {
1256
1298
  "fill-extrusion-color": "#e6e6e2",
1257
1299
  "fill-extrusion-height": [
@@ -1277,7 +1319,7 @@
1277
1319
  "type": "fill-extrusion",
1278
1320
  "source": "indoor-data",
1279
1321
  "minzoom": 16.5,
1280
- "filter": ["==", ["get", "featureType"], "Restrooms"],
1322
+ "filter": ["==", ["get", "featureType"], "RestroomsBlock"],
1281
1323
  "paint": {
1282
1324
  "fill-extrusion-color": "#5f9070",
1283
1325
  "fill-extrusion-height": [
@@ -1303,7 +1345,7 @@
1303
1345
  "type": "fill-extrusion",
1304
1346
  "source": "indoor-data",
1305
1347
  "minzoom": 16.5,
1306
- "filter": ["==", ["get", "featureType"], "Obstacles"],
1348
+ "filter": ["==", ["get", "featureType"], "ObstaclesBlock"],
1307
1349
  "paint": {
1308
1350
  "fill-extrusion-color": "#E8E9ED",
1309
1351
  "fill-extrusion-height": [
@@ -1332,7 +1374,7 @@
1332
1374
  "filter": [
1333
1375
  "in",
1334
1376
  ["get", "featureType"],
1335
- ["literal", ["Escalators", "Stairs", "Elevators"]]
1377
+ ["literal", ["EscalatorsBlock", "StairsBlock", "ElevatorsBlock"]]
1336
1378
  ],
1337
1379
  "paint": {
1338
1380
  "fill-extrusion-color": "#a9aeb1",
@@ -1381,280 +1423,113 @@
1381
1423
  }
1382
1424
  },
1383
1425
  {
1384
- "id": "route-halo",
1385
- "type": "line",
1386
- "source": "route-data",
1387
- "minzoom": 16.5,
1426
+ "id": "map-labels",
1427
+ "type": "symbol",
1428
+ "source": "map-labels-data",
1429
+ "minzoom": 15.5,
1430
+ "filter": ["!", ["in", "Building", ["get", "name"]]],
1388
1431
  "layout": {
1389
- "line-cap": "round",
1390
- "line-join": "round"
1391
- },
1392
- "paint": {
1393
- "line-color": "#ffffff",
1394
- "line-width": [
1432
+ "symbol-sort-key": 10,
1433
+ "text-field": ["get", "name"],
1434
+ "text-size": [
1395
1435
  "interpolate", ["linear"], ["zoom"],
1396
- 16.5, 10,
1397
- 18.0, 15,
1398
- 20.0, 21
1436
+ 15.5, 12,
1437
+ 16.5, 15,
1438
+ 18, 18,
1439
+ 20, 20
1399
1440
  ],
1400
- "line-opacity": 0.95
1401
- }
1402
- },
1403
- {
1404
- "id": "route-line",
1405
- "type": "line",
1406
- "source": "route-data",
1407
- "minzoom": 16.5,
1408
- "layout": {
1409
- "line-cap": "round",
1410
- "line-join": "round"
1441
+ "text-font": ["Noto Sans Bold"],
1442
+ "text-letter-spacing": 0.04,
1443
+ "text-max-width": 10,
1444
+ "text-anchor": "center",
1445
+ "text-rotate": ["get", "rotation"],
1446
+ "text-rotation-alignment": "viewport",
1447
+ "text-allow-overlap": false,
1448
+ "text-padding": 4
1411
1449
  },
1412
1450
  "paint": {
1413
- "line-color": "#d32f2f",
1414
- "line-width": [
1415
- "interpolate", ["linear"], ["zoom"],
1416
- 16.5, 6,
1417
- 18.0, 9,
1418
- 20.0, 13
1419
- ],
1420
- "line-opacity": 1
1451
+ "text-color": "#3d4551",
1452
+ "text-halo-color": "#FFFFFF",
1453
+ "text-halo-width": 1.4,
1454
+ "text-halo-blur": 0.5
1421
1455
  }
1422
1456
  },
1423
1457
  {
1424
- "id": "route-arrows",
1458
+ "id": "map-labels-buildings",
1425
1459
  "type": "symbol",
1426
- "source": "route-data",
1427
- "minzoom": 16.5,
1460
+ "source": "map-labels-data",
1461
+ "minzoom": 17,
1462
+ "filter": [
1463
+ "all",
1464
+ ["in", "Building", ["get", "name"]]
1465
+ ],
1428
1466
  "layout": {
1429
- "symbol-placement": "line",
1430
- "symbol-spacing": [
1431
- "interpolate", ["linear"], ["zoom"],
1432
- 16.5, 150,
1433
- 18.0, 290,
1434
- 20.0, 480
1467
+ "symbol-sort-key": 10,
1468
+ "icon-image": "map-label-bg",
1469
+ "icon-text-fit": "both",
1470
+ "icon-text-fit-padding": [2, 2, 2, 2],
1471
+ "icon-allow-overlap": false,
1472
+ "icon-ignore-placement": false,
1473
+ "text-field": [
1474
+ "format",
1475
+ "\uea40", {"text-font": ["literal", ["Material Icons"]]},
1476
+
1477
+ ["slice", ["get", "name"], ["+", ["index-of", "Building", ["get", "name"]], 9]], {}
1435
1478
  ],
1436
- "icon-image": "route-arrow",
1437
- "icon-rotation-alignment": "map",
1438
- "icon-pitch-alignment": "map",
1439
- "icon-allow-overlap": true,
1440
- "icon-ignore-placement": true,
1441
- "icon-size": [
1479
+ "text-size": [
1442
1480
  "interpolate", ["linear"], ["zoom"],
1443
- 16.5, 0.55,
1444
- 18.0, 0.75,
1445
- 20.0, 0.85
1446
- ]
1481
+ 15.5, 14,
1482
+ 16.5, 16,
1483
+ 18, 18,
1484
+ 20, 20
1485
+ ],
1486
+ "text-font": ["Noto Sans Bold"],
1487
+ "text-letter-spacing": 0.04,
1488
+ "text-max-width": 10,
1489
+ "text-anchor": "center",
1490
+
1491
+ "text-rotation-alignment": "viewport",
1492
+ "text-allow-overlap": false,
1493
+ "text-padding": 4
1447
1494
  },
1448
1495
  "paint": {
1449
- "icon-opacity": 1
1496
+ "text-color": "#fffffe"
1450
1497
  }
1451
1498
  },
1499
+
1452
1500
  {
1453
- "id": "route-arrows-flow",
1501
+ "id": "poi-entrance-exit-icons",
1454
1502
  "type": "symbol",
1455
- "source": "route-arrows-flow",
1456
- "minzoom": 16.5,
1503
+ "source": "poi-data",
1504
+ "filter": ["==", ["get", "amenityCategory"], "entrance"],
1505
+ "minzoom": 15,
1457
1506
  "layout": {
1458
- "icon-image": "route-arrow",
1459
- "icon-rotate": ["get", "rotate"],
1460
- "icon-rotation-alignment": "map",
1461
- "icon-pitch-alignment": "map",
1462
- "icon-allow-overlap": true,
1463
- "icon-ignore-placement": true,
1507
+ "symbol-sort-key": ["get", "rank"],
1508
+ "icon-image": ["get", "iconId"],
1464
1509
  "icon-size": [
1465
- "interpolate", ["linear"], ["zoom"],
1466
- 16.5, 0.55,
1467
- 18.0, 0.75,
1468
- 20.0, 0.85
1469
- ]
1470
- },
1471
- "paint": {
1472
- "icon-opacity": 1
1473
- }
1474
- },
1475
- {
1476
- "id": "route-line-active-halo",
1477
- "type": "line",
1478
- "source": "route-active-step",
1479
- "minzoom": 16.5,
1480
- "layout": {
1481
- "line-cap": "round",
1482
- "line-join": "round"
1483
- },
1484
- "paint": {
1485
- "line-color": "#FFFFFF",
1486
- "line-width": [
1487
- "interpolate", ["linear"], ["zoom"],
1488
- 16.5, 8,
1489
- 18.0, 11,
1490
- 20.0, 14
1491
- ],
1492
- "line-opacity": 0.85
1493
- }
1494
- },
1495
- {
1496
- "id": "route-line-active",
1497
- "type": "line",
1498
- "source": "route-active-step",
1499
- "minzoom": 16.5,
1500
- "layout": {
1501
- "line-cap": "round",
1502
- "line-join": "round"
1503
- },
1504
- "paint": {
1505
- "line-color": "#fdb81e",
1506
- "line-width": [
1507
- "interpolate", ["linear"], ["zoom"],
1508
- 16.5, 5,
1509
- 18.0, 7,
1510
- 20.0, 9
1511
- ],
1512
- "line-opacity": 1
1513
- }
1514
- },
1515
- {
1516
- "id": "route-endpoint-source",
1517
- "type": "circle",
1518
- "source": "route-endpoints",
1519
- "minzoom": 16.5,
1520
- "filter": ["==", ["get", "role"], "source"],
1521
- "paint": {
1522
- "circle-radius": 6,
1523
- "circle-color": "#ffffff",
1524
- "circle-stroke-width": 3,
1525
- "circle-stroke-color": "#d32f2f",
1526
- "circle-opacity": 1
1527
- }
1528
- },
1529
- {
1530
- "id": "route-endpoint-destination",
1531
- "type": "circle",
1532
- "source": "route-endpoints",
1533
- "minzoom": 16.5,
1534
- "filter": ["==", ["get", "role"], "destination"],
1535
- "paint": {
1536
- "circle-radius": 7,
1537
- "circle-color": "#d32f2f",
1538
- "circle-stroke-width": 3,
1539
- "circle-stroke-color": "#ffffff",
1540
- "circle-opacity": 1
1541
- }
1542
- },
1543
-
1544
- {
1545
- "id": "map-labels",
1546
- "type": "symbol",
1547
- "source": "map-labels-data",
1548
- "minzoom": 15.5,
1549
- "filter": ["!", ["in", "Building", ["get", "name"]]],
1550
- "layout": {
1551
- "symbol-sort-key": 10,
1552
- "text-field": ["get", "name"],
1553
- "text-size": [
1554
- "interpolate", ["linear"], ["zoom"],
1555
- 15.5, 12,
1556
- 16.5, 15,
1557
- 18, 18,
1558
- 20, 20
1559
- ],
1560
- "text-font": ["Noto Sans Bold"],
1561
- "text-letter-spacing": 0.04,
1562
- "text-max-width": 10,
1563
- "text-anchor": "center",
1564
- "text-rotate": ["get", "rotation"],
1565
- "text-rotation-alignment": "viewport",
1566
- "text-allow-overlap": false,
1567
- "text-padding": 4
1568
- },
1569
- "paint": {
1570
- "text-color": "#3d4551",
1571
- "text-halo-color": "#FFFFFF",
1572
- "text-halo-width": 1.4,
1573
- "text-halo-blur": 0.5
1574
- }
1575
- },
1576
- {
1577
- "id": "map-labels-buildings",
1578
- "type": "symbol",
1579
- "source": "map-labels-data",
1580
- "minzoom": 15.5,
1581
- "filter": [
1582
- "all",
1583
- ["in", "Building", ["get", "name"]]
1584
- ],
1585
- "layout": {
1586
- "symbol-sort-key": 10,
1587
- "icon-image": "map-label-bg",
1588
- "icon-text-fit": "both",
1589
- "icon-text-fit-padding": [2, 2, 2, 2],
1590
- "icon-allow-overlap": false,
1591
- "icon-ignore-placement": false,
1592
- "text-field": [
1593
- "format",
1594
- "\uea40", {"text-font": ["literal", ["Material Icons"]]},
1595
-
1596
- ["slice", ["get", "name"], 8, 10], {}
1597
- ],
1598
- "text-size": [
1599
- "interpolate", ["linear"], ["zoom"],
1600
- 15.5, 14,
1601
- 16.5, 16,
1602
- 18, 18,
1603
- 20, 20
1604
- ],
1605
- "text-font": ["Noto Sans Bold"],
1606
- "text-letter-spacing": 0.04,
1607
- "text-max-width": 10,
1608
- "text-anchor": "center",
1609
-
1610
- "text-rotation-alignment": "viewport",
1611
- "text-allow-overlap": false,
1612
- "text-padding": 4
1613
- },
1614
- "paint": {
1615
- "text-color": "#fffffe"
1616
- }
1617
- },
1618
-
1619
- {
1620
- "id": "poi-entrance-exit-icons",
1621
- "type": "symbol",
1622
- "source": "poi-data",
1623
- "filter": ["==", ["get", "amenityCategory"], "entrance"],
1624
- "minzoom": 15,
1625
- "layout": {
1626
- "symbol-sort-key": ["get", "rank"],
1627
- "icon-image": ["get", "iconId"],
1628
- "icon-size": [
1629
- "interpolate", ["exponential", 1.3], ["zoom"],
1630
- 14, 0.18,
1631
- 16, 0.3,
1632
- 18, 0.48,
1633
- 20, 0.5,
1634
- 22, 0.85
1635
- ],
1636
- "icon-allow-overlap": false,
1637
- "icon-padding": [
1638
- "interpolate", ["linear"], ["zoom"],
1639
- 15, 6,
1640
- 17, 2,
1641
- 19, 1
1642
- ],
1643
- "icon-optional": false,
1644
- "icon-rotation-alignment": "viewport",
1645
- "icon-pitch-alignment": "viewport",
1646
-
1647
- "text-field": ["get", "name"],
1648
- "text-size": [
1510
+ "interpolate", ["exponential", 1.3], ["zoom"],
1511
+ 14, 0.18,
1512
+ 16, 0.3,
1513
+ 18, 0.48,
1514
+ 20, 0.5,
1515
+ 22, 0.85
1516
+ ],
1517
+
1518
+ "icon-optional": false,
1519
+ "icon-rotation-alignment": "viewport",
1520
+ "icon-pitch-alignment": "viewport",
1521
+ "icon-allow-overlap":true,
1522
+ "text-field": ["get", "name"],
1523
+ "text-size": [
1649
1524
  "interpolate", ["linear"], ["zoom"],
1650
1525
  16, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 17],
1651
1526
  19, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 19],
1652
1527
  20, ["case", ["!=", ["coalesce", ["get", "iconId"], ""], ""], 0, 22]
1653
1528
  ],
1654
- "text-offset": [0, 1.3],
1529
+
1655
1530
  "text-anchor": "top",
1656
1531
  "text-optional": true,
1657
- "text-padding": 4,
1532
+ "text-padding": 2,
1658
1533
  "text-font": ["Noto Sans Bold"],
1659
1534
  "text-rotation-alignment": "viewport"
1660
1535
  },
@@ -1687,13 +1562,8 @@
1687
1562
  20, 0.5,
1688
1563
  22, 0.85
1689
1564
  ],
1690
- "icon-allow-overlap": false,
1691
- "icon-padding": [
1692
- "interpolate", ["linear"], ["zoom"],
1693
- 15, 8,
1694
- 17, 4,
1695
- 19, 2
1696
- ],
1565
+ "icon-allow-overlap": true,
1566
+
1697
1567
  "icon-optional": false,
1698
1568
  "icon-rotation-alignment": "viewport",
1699
1569
  "icon-pitch-alignment": "viewport",
@@ -1979,6 +1849,98 @@
1979
1849
  "icon-translate-anchor": "viewport"
1980
1850
  }
1981
1851
  },
1852
+ {
1853
+ "id": "poi-amenity-instance-labels",
1854
+ "type": "symbol",
1855
+ "source": "poi-data",
1856
+ "filter": ["all", ["==", ["get", "poiType"], "amenity"], ["has", "instanceName"]],
1857
+
1858
+ "layout": {
1859
+ "symbol-sort-key": ["get", "rank"],
1860
+ "text-field": ["get", "instanceName"],
1861
+ "text-size": [
1862
+ "interpolate", ["linear"], ["zoom"],
1863
+ 16, 14,
1864
+ 19, 15,
1865
+ 22, 17
1866
+ ],
1867
+ "text-offset": [
1868
+ "interpolate", ["linear"], ["zoom"],
1869
+ 16, ["literal", [0, 0.25]],
1870
+ 17, ["literal", [0, 0.15]],
1871
+ 19, ["literal", [0, 0.25]],
1872
+ 20, ["literal", [0, 0.45]],
1873
+ 22, ["literal", [0, 0.85]]
1874
+ ],
1875
+ "text-anchor": "top",
1876
+ "text-optional": true,
1877
+ "text-padding": 4,
1878
+ "text-font": ["Noto Sans Bold"],
1879
+ "text-rotation-alignment": "viewport"
1880
+ },
1881
+ "paint": {
1882
+ "text-color": "#0F1114",
1883
+ "text-halo-color": "#FFFFFF",
1884
+ "text-halo-width": 1.5,
1885
+ "text-halo-blur": 0.1
1886
+ }
1887
+ },
1888
+ {
1889
+ "id": "poi-destination-dots",
1890
+ "type": "symbol",
1891
+ "source": "poi-destination-cluster-data",
1892
+ "filter": ["!", ["has", "point_count"]],
1893
+ "minzoom": 16.5,
1894
+ "maxzoom": 18.25,
1895
+ "layout": {
1896
+ "icon-image": "destination-dot",
1897
+ "icon-size": [
1898
+ "interpolate", ["linear"], ["zoom"],
1899
+ 14, 0.1,
1900
+ 16, 0.8,
1901
+ 17.30, 0.8,
1902
+ 18, 0.5,
1903
+ 20, 0.8
1904
+ ],
1905
+ "icon-overlap": "cooperative",
1906
+ "icon-ignore-placement": false,
1907
+ "icon-padding": 0,
1908
+ "icon-rotation-alignment": "viewport",
1909
+ "icon-pitch-alignment": "viewport"
1910
+ }
1911
+ },
1912
+ {
1913
+ "id": "poi-destination-cluster-bubbles",
1914
+ "type": "symbol",
1915
+ "source": "poi-destination-cluster-data",
1916
+ "filter": ["has", "point_count"],
1917
+ "minzoom": 16.5,
1918
+ "maxzoom": 18.25,
1919
+ "layout": {
1920
+ "icon-image": "destination-cluster-dot",
1921
+ "icon-size": [
1922
+ "step", ["get", "point_count"],
1923
+ 1.3,
1924
+ 10, 1.5,
1925
+ 25, 1.7
1926
+ ],
1927
+ "icon-overlap": "cooperative",
1928
+ "icon-ignore-placement": false,
1929
+ "icon-padding": 0,
1930
+ "icon-rotation-alignment": "viewport",
1931
+ "icon-pitch-alignment": "viewport",
1932
+ "text-field": ["get", "point_count_abbreviated"],
1933
+ "text-size": 18,
1934
+ "text-font": ["Noto Sans Bold"],
1935
+ "text-overlap": "always",
1936
+ "text-ignore-placement": true,
1937
+ "text-rotation-alignment": "viewport",
1938
+ "text-pitch-alignment": "viewport"
1939
+ },
1940
+ "paint": {
1941
+ "text-color": "#ffffff"
1942
+ }
1943
+ },
1982
1944
  {
1983
1945
  "id": "poi-destination-labels",
1984
1946
  "type": "symbol",
@@ -1988,14 +1950,14 @@
1988
1950
  ["==", ["get", "poiType"], "destination"],
1989
1951
  ["==", ["get", "showLabel"], true]
1990
1952
  ],
1991
-
1992
1953
  "layout": {
1993
1954
  "symbol-sort-key": 0,
1994
1955
  "icon-image": "destination-dot",
1995
1956
  "icon-size": [
1996
1957
  "interpolate", ["linear"], ["zoom"],
1997
1958
  14, 0.1,
1998
- 16, 0.3,
1959
+ 16, 0.8,
1960
+ 17.30, 0.8,
1999
1961
  18, 0.5,
2000
1962
  20, 0.8
2001
1963
  ],
@@ -2007,7 +1969,7 @@
2007
1969
  "icon-pitch-alignment": "viewport",
2008
1970
  "text-field": ["get", "name"],
2009
1971
  "text-size": 16,
2010
- "text-variable-anchor-offset": ["top", [0, 0.8], "right", [-0.8, 0], "bottom", [0, -0.8], "left", [0.8, 0]],
1972
+ "text-variable-anchor-offset": ["top", [0, 0.5], "right", [-0.5, 0], "bottom", [0, -0.5], "left", [0.5, 0]],
2011
1973
  "text-variable-anchor": ["top", "right" , "bottom", "left"],
2012
1974
  "text-font": ["Noto Sans Bold"],
2013
1975
  "text-max-width": 12,
@@ -2017,7 +1979,7 @@
2017
1979
  "text-rotation-alignment": "viewport"
2018
1980
  },
2019
1981
  "paint": {
2020
- "text-color": "#FFFFFF",
1982
+ "text-color": "#F2F2F2",
2021
1983
  "text-halo-color": "#242930",
2022
1984
  "text-halo-width": 2,
2023
1985
  "text-halo-blur": 0
@@ -2038,7 +2000,8 @@
2038
2000
  "icon-size": [
2039
2001
  "interpolate", ["linear"], ["zoom"],
2040
2002
  14, 0.1,
2041
- 16, 0.3,
2003
+ 16, 0.8,
2004
+ 17.30, 0.8,
2042
2005
  18, 0.5,
2043
2006
  20, 0.8
2044
2007
  ],
@@ -2049,6 +2012,279 @@
2049
2012
  "icon-pitch-alignment": "viewport"
2050
2013
  }
2051
2014
  },
2015
+ {
2016
+ "id": "route-halo",
2017
+ "type": "line",
2018
+ "source": "route-data",
2019
+ "minzoom": 16.5,
2020
+ "layout": {
2021
+ "line-cap": "round",
2022
+ "line-join": "round"
2023
+ },
2024
+ "paint": {
2025
+ "line-color": "#ffffff",
2026
+ "line-width": [
2027
+ "interpolate", ["linear"], ["zoom"],
2028
+ 16.5, 10,
2029
+ 18.0, 15,
2030
+ 20.0, 21
2031
+ ],
2032
+ "line-opacity": 0.95
2033
+ }
2034
+ },
2035
+ {
2036
+ "id": "route-line",
2037
+ "type": "line",
2038
+ "source": "route-data",
2039
+ "minzoom": 16.5,
2040
+ "layout": {
2041
+ "line-cap": "round",
2042
+ "line-join": "round"
2043
+ },
2044
+ "paint": {
2045
+ "line-color": "#d32f2f",
2046
+ "line-width": [
2047
+ "interpolate", ["linear"], ["zoom"],
2048
+ 16.5, 6,
2049
+ 18.0, 9,
2050
+ 20.0, 13
2051
+ ],
2052
+ "line-opacity": 1
2053
+ }
2054
+ },
2055
+ {
2056
+ "id": "route-blocker",
2057
+ "type": "symbol",
2058
+ "source": "route-data",
2059
+ "minzoom": 16.5,
2060
+ "layout": {
2061
+ "symbol-placement": "line",
2062
+ "symbol-spacing": 6,
2063
+ "icon-image": "route-blocker",
2064
+ "icon-rotation-alignment": "viewport",
2065
+ "icon-pitch-alignment": "viewport",
2066
+ "icon-overlap": "always",
2067
+ "icon-ignore-placement": false,
2068
+ "icon-padding": 2,
2069
+ "icon-size": [
2070
+ "interpolate", ["linear"], ["zoom"],
2071
+ 16.5, 0.6,
2072
+ 18.0, 0.8,
2073
+ 20.0, 1.0
2074
+ ]
2075
+ }
2076
+ },
2077
+ {
2078
+ "id": "route-arrows",
2079
+ "type": "symbol",
2080
+ "source": "route-data",
2081
+ "minzoom": 16.5,
2082
+ "layout": {
2083
+ "symbol-placement": "line",
2084
+ "symbol-spacing": [
2085
+ "interpolate", ["linear"], ["zoom"],
2086
+ 16.5, 150,
2087
+ 18.0, 290,
2088
+ 20.0, 480
2089
+ ],
2090
+ "icon-image": "route-arrow",
2091
+ "icon-rotation-alignment": "map",
2092
+ "icon-pitch-alignment": "map",
2093
+ "icon-allow-overlap": true,
2094
+ "icon-ignore-placement": true,
2095
+ "icon-size": [
2096
+ "interpolate", ["linear"], ["zoom"],
2097
+ 16.5, 0.55,
2098
+ 18.0, 0.75,
2099
+ 20.0, 0.85
2100
+ ]
2101
+ },
2102
+ "paint": {
2103
+ "icon-opacity": 1
2104
+ }
2105
+ },
2106
+ {
2107
+ "id": "route-arrows-flow",
2108
+ "type": "symbol",
2109
+ "source": "route-arrows-flow",
2110
+ "minzoom": 16.5,
2111
+ "layout": {
2112
+ "icon-image": "route-arrow",
2113
+ "icon-rotate": ["get", "rotate"],
2114
+ "icon-rotation-alignment": "map",
2115
+ "icon-pitch-alignment": "map",
2116
+ "icon-allow-overlap": true,
2117
+ "icon-ignore-placement": true,
2118
+ "icon-size": [
2119
+ "interpolate", ["linear"], ["zoom"],
2120
+ 16.5, 0.55,
2121
+ 18.0, 0.75,
2122
+ 20.0, 0.85
2123
+ ]
2124
+ },
2125
+ "paint": {
2126
+ "icon-opacity": 1
2127
+ }
2128
+ },
2129
+ {
2130
+ "id": "route-line-active-halo",
2131
+ "type": "line",
2132
+ "source": "route-active-step",
2133
+ "minzoom": 16.5,
2134
+ "layout": {
2135
+ "line-cap": "round",
2136
+ "line-join": "round"
2137
+ },
2138
+ "paint": {
2139
+ "line-color": "#FFFFFF",
2140
+ "line-width": [
2141
+ "interpolate", ["linear"], ["zoom"],
2142
+ 16.5, 8,
2143
+ 18.0, 11,
2144
+ 20.0, 14
2145
+ ],
2146
+ "line-opacity": 0.85
2147
+ }
2148
+ },
2149
+ {
2150
+ "id": "route-line-active",
2151
+ "type": "line",
2152
+ "source": "route-active-step",
2153
+ "minzoom": 16.5,
2154
+ "layout": {
2155
+ "line-cap": "round",
2156
+ "line-join": "round"
2157
+ },
2158
+ "paint": {
2159
+ "line-color": "#fdb81e",
2160
+ "line-width": [
2161
+ "interpolate", ["linear"], ["zoom"],
2162
+ 16.5, 5,
2163
+ 18.0, 7,
2164
+ 20.0, 9
2165
+ ],
2166
+ "line-opacity": 1
2167
+ }
2168
+ },
2169
+ {
2170
+ "id": "route-endpoint-source",
2171
+ "type": "circle",
2172
+ "source": "route-endpoints",
2173
+ "minzoom": 16.5,
2174
+ "filter": ["==", ["get", "role"], "source"],
2175
+ "paint": {
2176
+ "circle-radius": 6,
2177
+ "circle-color": "#ffffff",
2178
+ "circle-stroke-width": 3,
2179
+ "circle-stroke-color": "#d32f2f",
2180
+ "circle-opacity": 1
2181
+ }
2182
+ },
2183
+ {
2184
+ "id": "route-endpoint-destination",
2185
+ "type": "circle",
2186
+ "source": "route-endpoints",
2187
+ "minzoom": 16.5,
2188
+ "filter": ["==", ["get", "role"], "destination"],
2189
+ "paint": {
2190
+ "circle-radius": 7,
2191
+ "circle-color": "#d32f2f",
2192
+ "circle-stroke-width": 3,
2193
+ "circle-stroke-color": "#ffffff",
2194
+ "circle-opacity": 1
2195
+ }
2196
+ },
2197
+ {
2198
+ "id": "poi-route-end-flag",
2199
+ "type": "symbol",
2200
+ "source": "route-end-data",
2201
+ "filter": ["==", ["get", "kind"], "destination"],
2202
+ "layout": {
2203
+ "icon-image": "route-end-flag",
2204
+ "icon-size": [
2205
+ "interpolate", ["linear"], ["zoom"],
2206
+ 14, 0.32,
2207
+ 16, 0.42,
2208
+ 18, 0.55,
2209
+ 20, 0.6,
2210
+ 22, 0.7
2211
+ ],
2212
+ "icon-overlap": "always",
2213
+ "icon-ignore-placement": false,
2214
+ "icon-rotation-alignment": "viewport",
2215
+ "icon-pitch-alignment": "viewport",
2216
+ "text-field": ["get", "name"],
2217
+ "text-size": 16,
2218
+ "text-variable-anchor-offset": [
2219
+ "top", [0, 1.6],
2220
+ "right", [-2, 0],
2221
+ "bottom", [0, -1.6],
2222
+ "left", [2, 0]
2223
+ ],
2224
+ "text-font": ["Noto Sans Bold"],
2225
+ "text-max-width": 12,
2226
+ "text-overlap": "always",
2227
+ "text-ignore-placement": false,
2228
+ "text-optional": false,
2229
+ "text-rotation-alignment": "viewport"
2230
+ },
2231
+ "paint": {
2232
+ "text-color": "#F2F2F2",
2233
+ "text-halo-color": "#242930",
2234
+ "text-halo-width": 2,
2235
+ "text-halo-blur": 0
2236
+ }
2237
+ },
2238
+ {
2239
+ "id": "poi-route-end-amenity",
2240
+ "type": "symbol",
2241
+ "source": "route-end-data",
2242
+ "filter": ["==", ["get", "kind"], "amenity"],
2243
+ "layout": {
2244
+ "icon-image": ["get", "iconId"],
2245
+ "icon-size": [
2246
+ "interpolate", ["exponential", 1.3], ["zoom"],
2247
+ 14, 0.27,
2248
+ 16, 0.45,
2249
+ 18, 0.72,
2250
+ 20, 0.75,
2251
+ 22, 1.28
2252
+ ],
2253
+ "icon-overlap": "always",
2254
+ "icon-ignore-placement": false,
2255
+ "icon-rotation-alignment": "viewport",
2256
+ "icon-pitch-alignment": "viewport",
2257
+ "text-field": ["coalesce", ["get", "instanceName"], ""],
2258
+ "text-size": [
2259
+ "interpolate", ["linear"], ["zoom"],
2260
+ 16, 14,
2261
+ 19, 15,
2262
+ 22, 17
2263
+ ],
2264
+ "text-offset": [
2265
+ "interpolate", ["linear"], ["zoom"],
2266
+ 16, ["literal", [0, 0.3]],
2267
+ 18, ["literal", [0, 0.5]],
2268
+ 20, ["literal", [0, 0.55]],
2269
+ 22, ["literal", [0, 1.5]]
2270
+ ],
2271
+ "text-anchor": "top",
2272
+ "text-font": ["Noto Sans Bold"],
2273
+ "text-overlap": "always",
2274
+ "text-ignore-placement": false,
2275
+ "text-optional": true,
2276
+ "text-rotation-alignment": "viewport"
2277
+ },
2278
+ "paint": {
2279
+ "icon-translate": [0, -20],
2280
+ "icon-translate-anchor": "viewport",
2281
+ "text-color": "#0F1114",
2282
+ "text-halo-color": "#FFFFFF",
2283
+ "text-halo-width": 1.5,
2284
+ "text-halo-blur": 0.1
2285
+ }
2286
+ },
2287
+
2052
2288
  {
2053
2289
  "id": "poi-you-are-here-heading",
2054
2290
  "type": "symbol",