enable to pass simple array to the method setBounds (#5687)

This commit is contained in:
ronikar 2017-08-05 16:50:48 +03:00 committed by Per Liedman
parent 2dbda53cc3
commit ce107a9f1b

View File

@ -136,7 +136,7 @@ export var ImageOverlay = Layer.extend({
// @method setBounds(bounds: LatLngBounds): this
// Update the bounds that this ImageOverlay covers
setBounds: function (bounds) {
this._bounds = bounds;
this._bounds = toLatLngBounds(bounds);
if (this._map) {
this._reset();