diff options
-rw-r--r-- | loleaflet/src/layer/tile/TileLayer.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index b91f44350..c38e132d0 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1135,7 +1135,7 @@ L.TileLayer = L.GridLayer.extend({ .openOn(this._map); } - if (!this._map.editorHasFocus() && (modifierViewId === this._viewId) && (this._map.getWinId === 0) && (this._map._permission === 'edit')) { + if (!this._map.editorHasFocus() && (modifierViewId === this._viewId) && (this._map._permission === 'edit')) { // Regain cursor if we had been out of focus and now have input. // (only if it is our own cursor and the input is actually not // going into a dialog) @@ -2108,8 +2108,7 @@ L.TileLayer = L.GridLayer.extend({ var updated = true; if (!this._cursorMarker) { this._cursorMarker = L.cursor(cursorPos, pixBounds.getSize().multiplyBy(this._map.getZoomScale(this._map.getZoom())), {blink: true}); - } - else { + } else { var oldLatLng = this._cursorMarker.getLatLng(); this._cursorMarker.setLatLng(cursorPos, pixBounds.getSize().multiplyBy(this._map.getZoomScale(this._map.getZoom()))); var newLatLng = this._cursorMarker.getLatLng(); |