Closed fishergisdldt closed 3 years ago
when map has no visiualLayers,print type is auto may cause mistake in file leaflet.browser.print.js line 350
if (!fitBounds) { fitBounds = this._map.getBounds(); } return fitBounds;
change to: if (!fitBounds ||fitBounds._southWest==undefined) { fitBounds = this._map.getBounds(); } return fitBounds;
Hello. There should be no use cases when map has no visual layers :) But I will add check for it, thanks.
Added fix in latest version.
when map has no visiualLayers,print type is auto may cause mistake in file leaflet.browser.print.js line 350
if (!fitBounds) { fitBounds = this._map.getBounds(); } return fitBounds;
change to: if (!fitBounds ||fitBounds._southWest==undefined) { fitBounds = this._map.getBounds(); } return fitBounds;