@types/mapbox__mapbox-gl-geocoder 4.7.2 → 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: Tue,
|
|
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
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
// Dmytro Gokun <https://github.com/dmytro-gokun>
|
|
5
5
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
6
|
|
|
7
|
-
/// <reference types="mapbox-gl" />
|
|
8
7
|
/// <reference types="geojson" />
|
|
8
|
+
|
|
9
|
+
import mapboxgl = require('mapbox-gl');
|
|
10
|
+
|
|
9
11
|
export as namespace MapboxGeocoder;
|
|
10
12
|
export = MapboxGeocoder;
|
|
11
13
|
|
|
@@ -38,7 +40,7 @@ declare namespace MapboxGeocoder {
|
|
|
38
40
|
/**
|
|
39
41
|
* A [mapbox-gl](https://github.com/mapbox/mapbox-gl-js) instance to use when creating [Markers](https://docs.mapbox.com/mapbox-gl-js/api/#marker). Required if `options.marker` is `true`.
|
|
40
42
|
*/
|
|
41
|
-
mapboxgl?: mapboxgl
|
|
43
|
+
mapboxgl?: typeof mapboxgl | undefined;
|
|
42
44
|
/**
|
|
43
45
|
* On geocoded result what zoom level should the map animate to when a bbox isn't found in the response. If a bbox is found the map will fit to the bbox. (optional, default 16)
|
|
44
46
|
*/
|
|
@@ -156,6 +158,30 @@ declare namespace MapboxGeocoder {
|
|
|
156
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)
|
|
157
159
|
*/
|
|
158
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;
|
|
159
185
|
}
|
|
160
186
|
}
|
|
161
187
|
declare class MapboxGeocoder implements mapboxgl.IControl {
|
|
@@ -250,6 +276,14 @@ declare class MapboxGeocoder implements mapboxgl.IControl {
|
|
|
250
276
|
setFilter(filter: (feature: MapboxGeocoder.Result) => boolean): this;
|
|
251
277
|
setOrigin(origin: string): this;
|
|
252
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;
|
|
253
287
|
/**
|
|
254
288
|
* Subscribe to events that happen within the plugin.
|
|
255
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": "3
|
|
31
|
+
"typesPublisherContentHash": "ada21317f857b8bcf0cdfb9c5b7a6387916fcde63712cd6aa7b6b7af1da22401",
|
|
32
|
+
"typeScriptVersion": "4.3"
|
|
33
33
|
}
|