diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-09-01 16:53:02 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2020-09-02 14:57:34 +0200 |
commit | db0f5292b3af7e94cd8d2676add83f0f03c72824 (patch) | |
tree | 897131f7c171e3fc461c84ac1665ab4fb70d01c7 | |
parent | 91d6a485382494f618f970cb31be4be570ca9643 (diff) |
calc tiles: don't send un-necessary zoom / visible area changes.
Lots of redundant zoom messages seem unhelpful.
Change-Id: I944a3202739adfc89aab81902b467a4e34977202
-rw-r--r-- | loleaflet/src/layer/tile/CanvasTileLayer.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loleaflet/src/layer/tile/CanvasTileLayer.js b/loleaflet/src/layer/tile/CanvasTileLayer.js index 8ef3cb886..8643f8bf7 100644 --- a/loleaflet/src/layer/tile/CanvasTileLayer.js +++ b/loleaflet/src/layer/tile/CanvasTileLayer.js @@ -697,9 +697,8 @@ L.CanvasTileLayer = L.TileLayer.extend({ } } - this._sendClientVisibleArea(true); - - this._sendClientZoom(true); + this._sendClientVisibleArea(); + this._sendClientZoom(); if (queue.length !== 0) { if (cancelTiles) { |