From 9313733d3ff84766b81504395a5982927dd8bc0a Mon Sep 17 00:00:00 2001 From: Alex Fedosov Date: Mon, 25 May 2015 17:45:53 +0600 Subject: [PATCH] make panInsideBounds accept array --- src/map/Map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/Map.js b/src/map/Map.js index a8066122..ef93d608 100644 --- a/src/map/Map.js +++ b/src/map/Map.js @@ -175,7 +175,7 @@ L.Map = L.Evented.extend({ panInsideBounds: function (bounds, options) { var center = this.getCenter(), - newCenter = this._limitCenter(center, this._zoom, bounds); + newCenter = this._limitCenter(center, this._zoom, L.latLngBounds(bounds)); if (center.equals(newCenter)) { return this; }