enable to pass simple array to the method setBounds (#5687)
This commit is contained in:
parent
2dbda53cc3
commit
ce107a9f1b
@ -136,7 +136,7 @@ export var ImageOverlay = Layer.extend({
|
|||||||
// @method setBounds(bounds: LatLngBounds): this
|
// @method setBounds(bounds: LatLngBounds): this
|
||||||
// Update the bounds that this ImageOverlay covers
|
// Update the bounds that this ImageOverlay covers
|
||||||
setBounds: function (bounds) {
|
setBounds: function (bounds) {
|
||||||
this._bounds = bounds;
|
this._bounds = toLatLngBounds(bounds);
|
||||||
|
|
||||||
if (this._map) {
|
if (this._map) {
|
||||||
this._reset();
|
this._reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user