loleaflet: allow the disabling of the print handler

This commit is contained in:
Mihai Varga 2015-10-19 11:24:30 +03:00
parent ed35ac63f6
commit 05e81a0edb

View file

@ -278,7 +278,7 @@ L.TileLayer = L.GridLayer.extend({
if (command.id === 'print') {
var isFirefox = typeof InstallTrigger !== 'undefined' || navigator.userAgent.search('Firefox') >= 0;
if (isFirefox) {
if (isFirefox || this._map.options.print === false) {
// the print dialog doesn't work well on firefox
this._map.fire('print', {url: url});
}