@types/mapbox-gl
Advanced tools
Comparing version 0.51.8 to 0.51.9
@@ -202,3 +202,3 @@ // Type definitions for Mapbox GL JS v0.51.0 | ||
cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CameraOptions | undefined; | ||
cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CameraForBoundsResult | undefined; | ||
@@ -1215,2 +1215,9 @@ fitBounds(bounds: LngLatBoundsLike, options?: mapboxgl.FitBoundsOptions, eventData?: mapboxgl.EventData): this; | ||
// The Mapbox docs say that if the result is defined, it will have zoom, center and bearing set. | ||
// In practice center is always a {lat, lng} object. | ||
export type CameraForBoundsResult = Required<Pick<CameraOptions, 'zoom' | 'bearing'>> & { | ||
/** Map center */ | ||
center: {lng: number; lat: number}; | ||
}; | ||
/** | ||
@@ -1217,0 +1224,0 @@ * FlyToOptions |
{ | ||
"name": "@types/mapbox-gl", | ||
"version": "0.51.8", | ||
"version": "0.51.9", | ||
"description": "TypeScript definitions for Mapbox GL JS", | ||
@@ -34,4 +34,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "02a9d03dc2bb0e492072dbb1e505299cadfe136d94ec0ea34682f4ed27121a72", | ||
"typesPublisherContentHash": "3e84f04db4d64bbe7e9a6b7cc4f3db516abbb8aa7ee9a9d46169c455c1c01707", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 26 Jun 2019 18:06:14 GMT | ||
* Last updated: Fri, 28 Jun 2019 17:59:07 GMT | ||
* Dependencies: @types/geojson | ||
@@ -14,0 +14,0 @@ * Global values: mapboxgl |
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
51460
1190