diff --git a/types/leaflet/index.d.ts b/types/leaflet/index.d.ts index 708b8af387..df3d73879f 100644 --- a/types/leaflet/index.d.ts +++ b/types/leaflet/index.d.ts @@ -4,6 +4,7 @@ // Arne Schubert // Michael Auer // Roni Karilkar +// Sandra Frischmuth // 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; diff --git a/types/leaflet/leaflet-tests.ts b/types/leaflet/leaflet-tests.ts index 99ac56dd7f..429062ac3b 100644 --- a/types/leaflet/leaflet-tests.ts +++ b/types/leaflet/leaflet-tests.ts @@ -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)