diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index c2a9a3d41e331b..0f74cae466ebcb 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mapbox GL JS v0.39.1 // Project: https://github.com/mapbox/mapbox-gl-js -// Definitions by: Dominik Bruderer +// Definitions by: Dominik Bruderer , Patrick Reames // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -395,12 +395,16 @@ declare namespace mapboxgl { timeout?: number; maximumAge?: number; } + + export class FitBoundsOptions { + maxZoom?: number; + } /** * Geolocate */ export class GeolocateControl extends Control { - constructor(options?: {positionOptions?: PositionOptions, watchPosition?: boolean}); + constructor(options?: {positionOptions?: PositionOptions, fitBoundsOptions?: FitBoundsOptions, trackUserLocation?: boolean, showUserLocation?: boolean}); } /**