Docstrings: map.panBy has options

This commit is contained in:
Iván Sánchez Ortega 2017-02-14 12:08:13 +01:00
parent c5f7dc4ad3
commit b997839fe7

View File

@ -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();