mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
extend typing for leaflet Map.panBy (#34802)
This commit is contained in:
committed by
Armando Aguirre
parent
08f8e7e2c7
commit
05a9513975
Vendored
+2
-1
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user