@types/mapbox-gl
Advanced tools
Comparing version 0.51.12 to 0.53.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Mapbox GL JS v0.51.0 | ||
// Type definitions for Mapbox GL JS v0.53.0 | ||
// Project: https://github.com/mapbox/mapbox-gl-js | ||
@@ -7,2 +7,3 @@ // Definitions by: Dominik Bruderer <https://github.com/dobrud> | ||
// Dmytro Gokun <https://github.com/dmytro-gokun> | ||
// Liam Clarke <https://github.com/LiamAttClarke> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -19,2 +20,3 @@ // TypeScript Version: 3.0 | ||
let version: string; | ||
let baseApiUrl: string; | ||
@@ -153,6 +155,8 @@ export function supported(options?: { failIfMajorPerformanceCaveat?: boolean }): boolean; | ||
setFeatureState(feature: { source: string, sourceLayer?: string, id: string | number } | mapboxgl.MapboxGeoJSONFeature, state: { [key: string]: any }): void; | ||
setFeatureState(feature: FeatureIdentifier | mapboxgl.MapboxGeoJSONFeature, state: { [key: string]: any }): void; | ||
getFeatureState(feature: { source: string, sourceLayer?: string, id: string | number } | mapboxgl.MapboxGeoJSONFeature): { [key: string]: any }; | ||
getFeatureState(feature: FeatureIdentifier | mapboxgl.MapboxGeoJSONFeature): { [key: string]: any }; | ||
removeFeatureState(target: FeatureIdentifier | mapboxgl.MapboxGeoJSONFeature, key?: string): void; | ||
getContainer(): HTMLElement; | ||
@@ -260,2 +264,5 @@ | ||
/** The initial bounds of the map. If bounds is specified, it overrides center and zoom constructor options. */ | ||
bounds?: LngLatBoundsLike; | ||
/** If true, enable the "box zoom" interaction (see BoxZoomHandler) */ | ||
@@ -324,2 +331,5 @@ boxZoom?: boolean; | ||
/** A fitBounds options object to use only when setting the bounds option. */ | ||
fitBoundsOptions?: FitBoundsOptions; | ||
/** If false, no mouse, touch, or keyboard listeners are attached to the map, so it will not respond to input */ | ||
@@ -462,2 +472,8 @@ interactive?: boolean; | ||
export interface FeatureIdentifier { | ||
id?: string | number, | ||
source: string | ||
sourceLayer?: string | ||
} | ||
/** | ||
@@ -464,0 +480,0 @@ * BoxZoomHandler |
{ | ||
"name": "@types/mapbox-gl", | ||
"version": "0.51.12", | ||
"version": "0.53.0", | ||
"description": "TypeScript definitions for Mapbox GL JS", | ||
@@ -26,2 +26,7 @@ "license": "MIT", | ||
"githubUsername": "dmytro-gokun" | ||
}, | ||
{ | ||
"name": "Liam Clarke", | ||
"url": "https://github.com/LiamAttClarke", | ||
"githubUsername": "LiamAttClarke" | ||
} | ||
@@ -40,4 +45,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "8fa57fba234b94a6d918a7624b4cc01f7d832dfdab24666f2b04e5bc0532e302", | ||
"typesPublisherContentHash": "24f72bbe69cdf9c2443c00d53f69f9149eebc3ab0ed814c6a446d92f021bed27", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 23 Jul 2019 19:54:59 GMT | ||
* Last updated: Mon, 29 Jul 2019 21:18:47 GMT | ||
* Dependencies: @types/geojson | ||
@@ -17,2 +17,2 @@ * Global values: mapboxgl | ||
# Credits | ||
These definitions were written by Dominik Bruderer <https://github.com/dobrud>, Patrick Reames <https://github.com/patrickr>, Karl-Aksel Puulmann <https://github.com/macobo>, and Dmytro Gokun <https://github.com/dmytro-gokun>. | ||
These definitions were written by Dominik Bruderer <https://github.com/dobrud>, Patrick Reames <https://github.com/patrickr>, Karl-Aksel Puulmann <https://github.com/macobo>, Dmytro Gokun <https://github.com/dmytro-gokun>, and Liam Clarke <https://github.com/LiamAttClarke>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52869
1212