diff options
Diffstat (limited to 'loleaflet/src/layer/tile/TileLayer.js')
-rw-r--r-- | loleaflet/src/layer/tile/TileLayer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 26afa6c71..0da191937 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1705,6 +1705,9 @@ L.TileLayer = L.GridLayer.extend({ var offset = new L.Point(parseInt(strTwips[2]), parseInt(strTwips[3])); var bottomRightTwips = topLeftTwips.add(offset); var oldSelection = this._textSelectionStart; + //FIXME: The selection is really not two points, as they can be + //FIXME: on top of each other, but on separate lines. We should + //FIXME: capture the whole area in _onTextSelectionMsg. this._textSelectionStart = new L.LatLngBounds( this._twipsToLatLng(topLeftTwips, this._map.getZoom()), this._twipsToLatLng(bottomRightTwips, this._map.getZoom())); |