@types/mapbox__mapbox-sdk 0.16.1 → 0.16.2
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.
mapbox__mapbox-sdk/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for @mapbox/mapbox-sdk (https://github.co
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 05 May 2025 03:26:39 GMT
|
|
12
12
|
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/mapbox-gl](https://npmjs.com/package/@types/mapbox-gl), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
mapbox__mapbox-sdk/index.d.ts
CHANGED
|
@@ -198,6 +198,7 @@ declare module "@mapbox/mapbox-sdk/lib/classes/mapi-error" {
|
|
|
198
198
|
|
|
199
199
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
200
200
|
declare module "@mapbox/mapbox-sdk/services/datasets" {
|
|
201
|
+
import * as GeoJSON from "geojson";
|
|
201
202
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
202
203
|
import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
203
204
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
@@ -1844,6 +1845,7 @@ declare module "@mapbox/mapbox-sdk/services/optimization" {
|
|
|
1844
1845
|
|
|
1845
1846
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
1846
1847
|
declare module "@mapbox/mapbox-sdk/services/static" {
|
|
1848
|
+
import * as GeoJSON from "geojson";
|
|
1847
1849
|
import { AnyLayer, LngLatBoundsLike, LngLatLike } from "mapbox-gl";
|
|
1848
1850
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
1849
1851
|
import { MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
@@ -2107,6 +2109,7 @@ declare module "@mapbox/mapbox-sdk/services/styles" {
|
|
|
2107
2109
|
|
|
2108
2110
|
// eslint-disable-next-line @definitelytyped/no-declare-current-package
|
|
2109
2111
|
declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
2112
|
+
import * as GeoJSON from "geojson";
|
|
2110
2113
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
2111
2114
|
import { Coordinates, MapiRequest } from "@mapbox/mapbox-sdk/lib/classes/mapi-request";
|
|
2112
2115
|
// eslint-disable-next-line @definitelytyped/no-self-import
|
|
@@ -2122,7 +2125,9 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
|
2122
2125
|
* Get a static map image..
|
|
2123
2126
|
* @param request
|
|
2124
2127
|
*/
|
|
2125
|
-
listFeatures(
|
|
2128
|
+
listFeatures(
|
|
2129
|
+
request: TileQueryRequest,
|
|
2130
|
+
): MapiRequest<GeoJSON.FeatureCollection<GeoJSON.Point, TileQueryResponseProperty>>;
|
|
2126
2131
|
}
|
|
2127
2132
|
|
|
2128
2133
|
interface TileQueryRequest {
|
|
@@ -2150,7 +2155,27 @@ declare module "@mapbox/mapbox-sdk/services/tilequery" {
|
|
|
2150
2155
|
* Queries for a specific geometry type.
|
|
2151
2156
|
*/
|
|
2152
2157
|
geometry?: GeometryType | undefined;
|
|
2153
|
-
|
|
2158
|
+
/**
|
|
2159
|
+
* A comma-separated list of bands to query, rather than querying all bands.
|
|
2160
|
+
* If a specified layer does not exist, it is skipped.
|
|
2161
|
+
* If no bands exist, returns an empty `FeatureCollection`.
|
|
2162
|
+
*/
|
|
2163
|
+
bands?: string | undefined;
|
|
2164
|
+
/**
|
|
2165
|
+
* A comma-separated list of layers to query, rather than querying all layers.
|
|
2166
|
+
* If a specified layer does not exist, it is skipped.
|
|
2167
|
+
* If no layers exist, returns an empty `FeatureCollection`.
|
|
2168
|
+
*/
|
|
2169
|
+
layers?: string | undefined;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
interface TileQueryResponseProperty {
|
|
2173
|
+
tilequery: {
|
|
2174
|
+
distance: number;
|
|
2175
|
+
geometry: GeometryType;
|
|
2176
|
+
layer: string;
|
|
2177
|
+
};
|
|
2178
|
+
[name: string]: any;
|
|
2154
2179
|
}
|
|
2155
2180
|
|
|
2156
2181
|
type GeometryType = "polygon" | "linestring" | "point";
|
mapbox__mapbox-sdk/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/mapbox__mapbox-sdk",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "TypeScript definitions for @mapbox/mapbox-sdk",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__mapbox-sdk",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"@types/node": "*"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "921adb2f949da4b7ee5c4c39486daf20281a4d39696b8ec4973da245505c2708",
|
|
49
49
|
"typeScriptVersion": "5.1"
|
|
50
50
|
}
|