mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
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:
2
types/googlemaps/index.d.ts
vendored
2
types/googlemaps/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user