Merge pull request #3143 from bcamper/flyto-3139
flyTo: convert targetCenter to latLng
This commit is contained in:
commit
e653cbe864
@ -9,6 +9,7 @@ L.Map.include({
|
|||||||
size = this.getSize(),
|
size = this.getSize(),
|
||||||
startZoom = this._zoom;
|
startZoom = this._zoom;
|
||||||
|
|
||||||
|
targetCenter = L.latLng(targetCenter);
|
||||||
targetZoom = targetZoom === undefined ? startZoom : targetZoom;
|
targetZoom = targetZoom === undefined ? startZoom : targetZoom;
|
||||||
|
|
||||||
var w0 = Math.max(size.x, size.y),
|
var w0 = Math.max(size.x, size.y),
|
||||||
|
Loading…
Reference in New Issue
Block a user