[Libreoffice-commits] online.git: loleaflet/js loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Mar 5 12:22:12 UTC 2019
loleaflet/js/main.js | 3 ---
loleaflet/src/layer/tile/CalcTileLayer.js | 3 +++
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 7e9204f02434e2a2238fee00c0d6aa6c49941f2d
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Jan 15 17:43:33 2019 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Mar 5 08:21:25 2019 -0400
loleaflet: row/column control belongs to CalcTileLayer
Change-Id: I2c5f43bd74f6d7151c21152ab2b86d8065a96ce5
diff --git a/loleaflet/js/main.js b/loleaflet/js/main.js
index 7eefaf251..67d88d714 100644
--- a/loleaflet/js/main.js
+++ b/loleaflet/js/main.js
@@ -73,9 +73,6 @@ setupToolbar(map);
map.addControl(L.control.scroll());
map.addControl(L.control.alertDialog());
map.addControl(L.control.lokDialog());
-map.addControl(L.control.tabs());
-map.addControl(L.control.columnHeader());
-map.addControl(L.control.rowHeader());
map.addControl(L.control.contextMenu());
map.addControl(L.control.infobar());
map.loadDocument();
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index b616155b0..647670a47 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -54,6 +54,9 @@ L.CalcTileLayer = L.TileLayer.extend({
},
onAdd: function (map) {
+ map.addControl(L.control.tabs());
+ map.addControl(L.control.columnHeader());
+ map.addControl(L.control.rowHeader());
L.TileLayer.prototype.onAdd.call(this, map);
this._annotations = {};
},
More information about the Libreoffice-commits
mailing list