[Libreoffice-commits] online.git: loleaflet/src
László Németh
laszlo.nemeth at collabora.com
Wed Nov 9 15:18:12 UTC 2016
loleaflet/src/layer/tile/TileLayer.js | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 8ef5c5fa36edbbffe5c5b347f951cb1944a5fdf8
Author: László Németh <laszlo.nemeth at collabora.com>
Date: Wed Nov 9 12:14:13 2016 +0100
loleaflet: hide debug control in disabled tile debug mode
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index 9ac52e6..74cb6e2 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -396,10 +396,12 @@ L.TileLayer = L.GridLayer.extend({
if (!this._debug) {
map.removeLayer(this._debugInfo);
map.removeLayer(this._debugInfo2);
+ $('.leaflet-control-layers-expanded').css('display', 'none');
} else {
if (this._debugInfo) {
map.addLayer(this._debugInfo);
map.addLayer(this._debugInfo2);
+ $('.leaflet-control-layers-expanded').css('display', 'block');
}
this._debugInit();
}
More information about the Libreoffice-commits
mailing list