mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-20 14:34:38 +00:00
Docstrings: map.panBy has options
This commit is contained in:
@ -295,7 +295,7 @@ export var Map = Evented.extend({
|
|||||||
return this.setView(center, this._zoom, {pan: options});
|
return this.setView(center, this._zoom, {pan: options});
|
||||||
},
|
},
|
||||||
|
|
||||||
// @method panBy(offset: Point): this
|
// @method panBy(offset: Point, options?: Pan options): this
|
||||||
// Pans the map by a given number of pixels (animated).
|
// Pans the map by a given number of pixels (animated).
|
||||||
panBy: function (offset, options) {
|
panBy: function (offset, options) {
|
||||||
offset = toPoint(offset).round();
|
offset = toPoint(offset).round();
|
||||||
|
Reference in New Issue
Block a user