@swr-data-lab/components 1.13.5 → 1.13.7
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.
|
@@ -14,6 +14,7 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
|
|
|
14
14
|
countries: countriesArr.join(','),
|
|
15
15
|
showResultsWhileTyping: true,
|
|
16
16
|
showResultMarkers: false,
|
|
17
|
+
debounceSearch: 25,
|
|
17
18
|
placeholder,
|
|
18
19
|
limit
|
|
19
20
|
});
|
|
@@ -38,7 +39,7 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
|
|
|
38
39
|
padding: 0.4em 0.65em;
|
|
39
40
|
}
|
|
40
41
|
:global(.maplibregl-ctrl-geocoder--input) {
|
|
41
|
-
width: 100
|
|
42
|
+
width: calc(100% - 3.7em);
|
|
42
43
|
height: 100%;
|
|
43
44
|
font-family: inherit;
|
|
44
45
|
font-size: inherit;
|
|
@@ -117,9 +118,6 @@ const geocoder = new MaplibreGeocoder(geocoderAPI, {
|
|
|
117
118
|
display: flex;
|
|
118
119
|
flex-direction: column;
|
|
119
120
|
}
|
|
120
|
-
:global(.maplibregl-ctrl-geocoder--suggestion-match) {
|
|
121
|
-
font-weight: bold;
|
|
122
|
-
}
|
|
123
121
|
:global(.maplibregl-ctrl-geocoder--suggestion-title),
|
|
124
122
|
:global(.maplibregl-ctrl-geocoder--suggestion-address),
|
|
125
123
|
:global(.maplibregl-ctrl-geocoder--result-address) {
|
|
@@ -6,7 +6,7 @@ interface GeocoderControlProps {
|
|
|
6
6
|
*/
|
|
7
7
|
key: string;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Limit the number of returned suggestions
|
|
10
10
|
*/
|
|
11
11
|
limit?: number;
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ interface GeocoderControlProps {
|
|
|
18
18
|
*/
|
|
19
19
|
languages?: GeocodingLanguage | GeocodingLanguage[];
|
|
20
20
|
/**
|
|
21
|
-
* Overwrite the default input placeholder
|
|
21
|
+
* Overwrite the default input placeholder
|
|
22
22
|
*/
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
}
|
|
@@ -487,16 +487,7 @@ export default function makeRoads() {
|
|
|
487
487
|
},
|
|
488
488
|
paint: {
|
|
489
489
|
'line-color': motorway.line_color,
|
|
490
|
-
'line-
|
|
491
|
-
'line-width': {
|
|
492
|
-
stops: [
|
|
493
|
-
[12, 3],
|
|
494
|
-
[14, 4],
|
|
495
|
-
[16, 10],
|
|
496
|
-
[18, 20],
|
|
497
|
-
[20, 56]
|
|
498
|
-
]
|
|
499
|
-
}
|
|
490
|
+
'line-width': motorway.line_width
|
|
500
491
|
},
|
|
501
492
|
minzoom: 13
|
|
502
493
|
},
|
|
@@ -741,7 +732,7 @@ export default function makeRoads() {
|
|
|
741
732
|
filter: ['all', ['==', 'bridge', true], ['in', 'kind', 'trunk'], ['==', 'link', true]],
|
|
742
733
|
paint: {
|
|
743
734
|
'line-color': motorway_outline.line_color,
|
|
744
|
-
'line-width':
|
|
735
|
+
'line-width': motorway_link_outline.line_width
|
|
745
736
|
},
|
|
746
737
|
layout: street_layout,
|
|
747
738
|
minzoom: 13
|