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).
This commit is contained in:
Niall
2018-01-24 05:32:48 +11:00
committed by Andy
parent ec91c51a72
commit 27b74af5a2

View File

@@ -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;