@types/mapbox__mapbox-gl-geocoder 4.7.4 → 4.7.6
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.
|
File without changes
|
|
@@ -8,9 +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:
|
|
11
|
+
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT
|
|
12
12
|
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl)
|
|
13
|
-
* Global values: `MapboxGeocoder`
|
|
14
13
|
|
|
15
14
|
# Credits
|
|
16
15
|
These definitions were written by [makspetrov](https://github.com/Nosfit), and [Dmytro Gokun](https://github.com/dmytro-gokun).
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
// Type definitions for @mapbox/mapbox-gl-geocoder 4.7
|
|
2
|
-
// Project: https://github.com/mapbox/mapbox-gl-geocoder
|
|
3
|
-
// Definitions by: makspetrov <https://github.com/Nosfit>
|
|
4
|
-
// Dmytro Gokun <https://github.com/dmytro-gokun>
|
|
5
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
|
|
7
1
|
/// <reference types="geojson" />
|
|
8
2
|
|
|
9
|
-
import mapboxgl = require(
|
|
3
|
+
import mapboxgl = require("mapbox-gl");
|
|
10
4
|
|
|
11
5
|
export as namespace MapboxGeocoder;
|
|
12
6
|
export = MapboxGeocoder;
|
|
@@ -112,10 +106,12 @@ declare namespace MapboxGeocoder {
|
|
|
112
106
|
* A function accepting the query string and current features list which performs geocoding to supplement results from the Mapbox Geocoding API.
|
|
113
107
|
* Expected to return a Promise which resolves to an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
114
108
|
*/
|
|
115
|
-
externalGeocoder?:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
externalGeocoder?:
|
|
110
|
+
| ((
|
|
111
|
+
searchInput: string,
|
|
112
|
+
features: GeoJSON.FeatureCollection<GeoJSON.Geometry>,
|
|
113
|
+
) => Promise<GeoJSON.FeatureCollection>)
|
|
114
|
+
| undefined;
|
|
119
115
|
/**
|
|
120
116
|
* If `true`, enable reverse geocoding mode. In reverse geocoding, search input is expected to be coordinates in the form `lat, lon`, with suggestions being the reverse geocodes.
|
|
121
117
|
* (optional, default false)
|
|
@@ -147,7 +143,7 @@ declare namespace MapboxGeocoder {
|
|
|
147
143
|
* A string specifying the geocoding [endpoint](https://docs.mapbox.com/api/search/#endpoints) to query.
|
|
148
144
|
* Options are `mapbox.places` and `mapbox.places`. The `mapbox.places-permanent` mode requires an enterprise license for permanent geocodes. (optional, default "mapbox.places")
|
|
149
145
|
*/
|
|
150
|
-
mode?:
|
|
146
|
+
mode?: "mapbox.places" | "mapbox.places-permanent" | undefined;
|
|
151
147
|
/**
|
|
152
148
|
* A function accepting the query string which performs local geocoding to supplement results from the Mapbox Geocoding API.
|
|
153
149
|
* Expected to return an Array of GeoJSON Features in the [Carmen GeoJSON](https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) format.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-gl-geocoder",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.6",
|
|
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",
|
|
7
7
|
"contributors": [
|
|
8
8
|
{
|
|
9
9
|
"name": "makspetrov",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"githubUsername": "Nosfit",
|
|
11
|
+
"url": "https://github.com/Nosfit"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"name": "Dmytro Gokun",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"githubUsername": "dmytro-gokun",
|
|
16
|
+
"url": "https://github.com/dmytro-gokun"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"main": "",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"@types/geojson": "*",
|
|
29
29
|
"@types/mapbox-gl": "*"
|
|
30
30
|
},
|
|
31
|
-
"typesPublisherContentHash": "
|
|
32
|
-
"typeScriptVersion": "4.
|
|
31
|
+
"typesPublisherContentHash": "433d1d5ba42f2ac6c15f2a0642fb9323f05edba1e71027e895daa3d82ab8b7d5",
|
|
32
|
+
"typeScriptVersion": "4.5"
|
|
33
33
|
}
|