Merge pull request #3143 from bcamper/flyto-3139

flyTo: convert targetCenter to latLng
This commit is contained in:
Vladimir Agafonkin 2015-01-18 11:18:53 +02:00
commit e653cbe864

View File

@ -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),