Skip to content

Commit

Permalink
Merge pull request #3489 from RLRR/fix-paninsidebounds-array-param
Browse files Browse the repository at this point in the history
Make panInsideBounds method accept bounds in array form
  • Loading branch information
mourner committed May 25, 2015
2 parents 33753fe + 9313733 commit df84336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit df84336

Please sign in to comment.