@types/mapbox__mapbox-gl-geocoder 4.7.3 → 4.7.4
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.
|
@@ -8,8 +8,8 @@ This package contains type definitions for @mapbox/mapbox-gl-geocoder (https://g
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-geocoder.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies: [@types/
|
|
11
|
+
* Last updated: Tue, 08 Aug 2023 19:32:50 GMT
|
|
12
|
+
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl)
|
|
13
13
|
* Global values: `MapboxGeocoder`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
@@ -158,6 +158,30 @@ declare namespace MapboxGeocoder {
|
|
|
158
158
|
* If `false`, indicates that the `localGeocoder` results should be combined with those from the Mapbox API with the `localGeocoder` results ranked higher. (optional, default false)
|
|
159
159
|
*/
|
|
160
160
|
localGeocoderOnly?: boolean | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Specify whether to return autocomplete results or not. When autocomplete is enabled,
|
|
163
|
+
* results will be included that start with the requested string, rather than just responses
|
|
164
|
+
* that match it exactly. (optional, default true)
|
|
165
|
+
*/
|
|
166
|
+
autocomplete?: boolean | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Specify whether the Geocoding API should attempt approximate, as well as exact, matching
|
|
169
|
+
* when performing searches, or whether it should opt out of this behavior and only attempt
|
|
170
|
+
* exact matching. (optional, default true)
|
|
171
|
+
*/
|
|
172
|
+
fuzzyMatch?: boolean | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Specify whether to request additional metadata about the recommended navigation
|
|
175
|
+
* destination corresponding to the feature or not. Only applicable for address features.
|
|
176
|
+
* (optional, default false)
|
|
177
|
+
*/
|
|
178
|
+
routing?: boolean | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* Filter results to geographic features whose characteristics are defined differently by
|
|
181
|
+
* audiences belonging to various regional, cultural, or political groups. (optional,
|
|
182
|
+
* default "us")
|
|
183
|
+
*/
|
|
184
|
+
worldview?: string | undefined;
|
|
161
185
|
}
|
|
162
186
|
}
|
|
163
187
|
declare class MapboxGeocoder implements mapboxgl.IControl {
|
|
@@ -252,6 +276,14 @@ declare class MapboxGeocoder implements mapboxgl.IControl {
|
|
|
252
276
|
setFilter(filter: (feature: MapboxGeocoder.Result) => boolean): this;
|
|
253
277
|
setOrigin(origin: string): this;
|
|
254
278
|
getOrigin(): string;
|
|
279
|
+
setAutocomplete(value: boolean): this;
|
|
280
|
+
getAutocomplete(): boolean;
|
|
281
|
+
setFuzzyMatch(value: boolean): this;
|
|
282
|
+
getFuzzyMatch(): boolean;
|
|
283
|
+
setRouting(value: boolean): this;
|
|
284
|
+
getRouting(): boolean;
|
|
285
|
+
setWorldview(code: string): this;
|
|
286
|
+
getWorldview(): string;
|
|
255
287
|
/**
|
|
256
288
|
* Subscribe to events that happen within the plugin.
|
|
257
289
|
* type name of event. Available events and the data passed into their respective event objects are:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-gl-geocoder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "TypeScript definitions for @mapbox/mapbox-gl-geocoder",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-gl-geocoder",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"@types/geojson": "*",
|
|
29
29
|
"@types/mapbox-gl": "*"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "4.
|
|
31
|
+
"typesPublisherContentHash": "ada21317f857b8bcf0cdfb9c5b7a6387916fcde63712cd6aa7b6b7af1da22401",
|
|
32
|
+
"typeScriptVersion": "4.3"
|
|
33
33
|
}
|