From 27b74af5a22cdd2275ccc2e56ec0ba077c048dda Mon Sep 17 00:00:00 2001 From: Niall Date: Wed, 24 Jan 2018 05:32:48 +1100 Subject: [PATCH] Update googlemaps fitbounds method to include padding (#23071) fitbounds has an optional second argument: padding. reference: https://developers.google.com/maps/documentation/javascript/reference (see Methods section, first method). --- types/googlemaps/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index 83190d3e28..4519a50eab 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -31,7 +31,7 @@ declare namespace google.maps { /***** Map *****/ export class Map extends MVCObject { constructor(mapDiv: Element|null, opts?: MapOptions); - fitBounds(bounds: LatLngBounds|LatLngBoundsLiteral): void; + fitBounds(bounds: LatLngBounds|LatLngBoundsLiteral, padding?: number): void; getBounds(): LatLngBounds|null|undefined; getCenter(): LatLng; getDiv(): Element;