flyTo: convert targetCenter to latLng

see #3139
This commit is contained in:
Brett Camper 2015-01-14 19:47:46 -05:00
parent c3a39f50cf
commit c656e3f993

View File

@ -9,6 +9,7 @@ L.Map.include({
size = this.getSize(),
startZoom = this._zoom;
targetCenter = L.latLng(targetCenter);
targetZoom = targetZoom === undefined ? startZoom : targetZoom;
var w0 = Math.max(size.x, size.y),