extend typing for leaflet Map.panBy (#34802)

This commit is contained in:
SanFrisc
2019-04-17 14:19:20 -07:00
committed by Armando Aguirre
parent 08f8e7e2c7
commit 05a9513975
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
// Arne Schubert <https://github.com/atd-schubert>
// Michael Auer <https://github.com/mcauer>
// Roni Karilkar <https://github.com/ronikar>
// Sandra Frischmuth <https://github.com/sanfrisc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -1392,7 +1393,7 @@ export class Map extends Evented {
fitBounds(bounds: LatLngBoundsExpression, options?: FitBoundsOptions): this;
fitWorld(options?: FitBoundsOptions): this;
panTo(latlng: LatLngExpression, options?: PanOptions): this;
panBy(offset: PointExpression): this;
panBy(offset: PointExpression, options?: PanOptions): this;
setMaxBounds(bounds: LatLngBoundsExpression): this;
setMinZoom(zoom: number): this;
setMaxZoom(zoom: number): this;
+1
View File
@@ -402,6 +402,7 @@ map = map
.panTo(latLngTuple, panOptions)
.panBy(point)
.panBy(pointTuple)
.panBy(pointTuple, { animate: false, duration: 1, easeLinearity: 1, noMoveStart: true })
.setMaxBounds(latLngBounds)
.setMaxBounds(latLngBoundsLiteral)
.setMinZoom(5)