[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Sun Nov 8 09:11:59 PST 2015
loleaflet/src/layer/tile/CalcTileLayer.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit fd4505079064bde0de7756f9a883e3cf60204c05
Author: Henry Castro <hcastro at collabora.com>
Date: Sun Nov 8 13:11:45 2015 -0400
loleaflet: add controls to calc tile layer
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index 4e2963e..ba72c70 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -4,6 +4,14 @@
L.CalcTileLayer = L.TileLayer.extend({
+ beforeAdd: function (map) {
+ map._addZoomLimit(this);
+ this._columns = L.control.columnHeader();
+ this._rows = L.control.rowHeader();
+ map.addControl(this._columns);
+ map.addControl(this._rows);
+ },
+
_onInvalidateTilesMsg: function (textMsg) {
var command = L.Socket.parseServerCmd(textMsg);
if (command.x === undefined || command.y === undefined || command.part === undefined) {
More information about the Libreoffice-commits
mailing list