accept true as a third setView argument for compatibility

This commit is contained in:
Vladimir Agafonkin 2013-04-30 17:09:55 +03:00
parent 5ab4d4a4be
commit df72027401

View File

@ -14,7 +14,7 @@ L.Map.include({
this._panAnim.stop();
}
if (this._loaded && !options.reset) {
if (this._loaded && !options.reset && options !== true) {
if (options.animate !== undefined) {
options.zoom = L.extend({animate: options.animate}, options.zoom);