@minmaps-dev/mm-web-sdk 1.0.0-rc.46 → 1.0.0-rc.48
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +420 -34
- 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 +15 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/themes/alt3-hybrid-style.json +61 -2
package/package.json
CHANGED
|
@@ -41,6 +41,14 @@
|
|
|
41
41
|
"type": "geojson",
|
|
42
42
|
"data": { "type": "FeatureCollection", "features": [] }
|
|
43
43
|
},
|
|
44
|
+
"route-approach-data": {
|
|
45
|
+
"type": "geojson",
|
|
46
|
+
"data": { "type": "FeatureCollection", "features": [] }
|
|
47
|
+
},
|
|
48
|
+
"route-preview-data": {
|
|
49
|
+
"type": "geojson",
|
|
50
|
+
"data": { "type": "FeatureCollection", "features": [] }
|
|
51
|
+
},
|
|
44
52
|
"poi-highlight-data": {
|
|
45
53
|
"type": "geojson",
|
|
46
54
|
"data": { "type": "FeatureCollection", "features": [] }
|
|
@@ -681,6 +689,7 @@
|
|
|
681
689
|
{
|
|
682
690
|
"id": "boundary-fill",
|
|
683
691
|
"type": "fill",
|
|
692
|
+
"minzoom": 15.8,
|
|
684
693
|
"source": "indoor-data",
|
|
685
694
|
"filter": ["==", ["get", "featureType"], "Boundary"],
|
|
686
695
|
"paint": {
|
|
@@ -1480,12 +1489,13 @@
|
|
|
1480
1489
|
18, 16,
|
|
1481
1490
|
20, 18
|
|
1482
1491
|
],
|
|
1492
|
+
"text-variable-anchor": ["bottom", "left", "right", "top"],
|
|
1493
|
+
"text-variable-anchor-offset": ["bottom", [0, -1.1], "left", [1.1, 0], "right", [-1.1, 0], "top", [0, 1.1]],
|
|
1483
1494
|
"text-optional": false,
|
|
1484
1495
|
"text-font": ["Noto Sans Bold"],
|
|
1485
1496
|
"text-letter-spacing": 0.04,
|
|
1486
1497
|
"text-max-width": 8,
|
|
1487
|
-
|
|
1488
|
-
"text-offset": [0, 1.1],
|
|
1498
|
+
|
|
1489
1499
|
"text-rotation-alignment": "viewport",
|
|
1490
1500
|
"text-allow-overlap": true,
|
|
1491
1501
|
"text-padding": 4
|
|
@@ -2133,6 +2143,41 @@
|
|
|
2133
2143
|
"line-opacity": 0.25
|
|
2134
2144
|
}
|
|
2135
2145
|
},
|
|
2146
|
+
{
|
|
2147
|
+
"id": "route-approach-line",
|
|
2148
|
+
"type": "line",
|
|
2149
|
+
"source": "route-approach-data",
|
|
2150
|
+
"filter": ["==", ["geometry-type"], "LineString"],
|
|
2151
|
+
"layout": {
|
|
2152
|
+
"line-cap": "round",
|
|
2153
|
+
"line-join": "round"
|
|
2154
|
+
},
|
|
2155
|
+
"paint": {
|
|
2156
|
+
"line-color": "#d32f2f",
|
|
2157
|
+
"line-width": [
|
|
2158
|
+
"interpolate", ["linear"], ["zoom"],
|
|
2159
|
+
16.5, 3,
|
|
2160
|
+
18.0, 4,
|
|
2161
|
+
20.0, 6
|
|
2162
|
+
],
|
|
2163
|
+
"line-dasharray": [0.1, 2],
|
|
2164
|
+
"line-opacity": 1
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"id": "route-approach-tap",
|
|
2169
|
+
"type": "circle",
|
|
2170
|
+
"source": "route-approach-data",
|
|
2171
|
+
"filter": ["==", ["geometry-type"], "Point"],
|
|
2172
|
+
"paint": {
|
|
2173
|
+
"circle-radius": 7,
|
|
2174
|
+
"circle-color": "#ffffff",
|
|
2175
|
+
"circle-stroke-width": 3,
|
|
2176
|
+
"circle-stroke-color": "#d32f2f",
|
|
2177
|
+
"circle-opacity": 1,
|
|
2178
|
+
"circle-pitch-alignment": "map"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2136
2181
|
{
|
|
2137
2182
|
"id": "route-arrows",
|
|
2138
2183
|
"type": "symbol",
|
|
@@ -2264,6 +2309,20 @@
|
|
|
2264
2309
|
"icon-translate-anchor": "viewport"
|
|
2265
2310
|
}
|
|
2266
2311
|
},
|
|
2312
|
+
{
|
|
2313
|
+
"id": "poi-route-preview",
|
|
2314
|
+
"type": "symbol",
|
|
2315
|
+
"source": "route-preview-data",
|
|
2316
|
+
"layout": {
|
|
2317
|
+
"icon-image": ["match", ["get", "kind"], "start", "marker-start", "marker-destination"],
|
|
2318
|
+
"icon-anchor": "bottom",
|
|
2319
|
+
"icon-size": ["interpolate", ["linear"], ["zoom"], 15, 0.7, 16, 0.9, 18, 1, 20, 1.15, 22, 1.35],
|
|
2320
|
+
"icon-overlap": "always",
|
|
2321
|
+
"icon-ignore-placement": false,
|
|
2322
|
+
"icon-rotation-alignment": "viewport",
|
|
2323
|
+
"icon-pitch-alignment": "viewport"
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2267
2326
|
{
|
|
2268
2327
|
"id": "poi-route-start",
|
|
2269
2328
|
"type": "symbol",
|