From aa448cb5c3e2e372dad1c79ffc32ff32144b4140 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 11 Sep 2017 11:53:06 +0200 Subject: Move zoom level and map position info to store --- src/containers/map/layers/ObjectHoverLayer.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/containers/map/layers/ObjectHoverLayer.js') diff --git a/src/containers/map/layers/ObjectHoverLayer.js b/src/containers/map/layers/ObjectHoverLayer.js index d0cc35fd..b0201257 100644 --- a/src/containers/map/layers/ObjectHoverLayer.js +++ b/src/containers/map/layers/ObjectHoverLayer.js @@ -5,6 +5,8 @@ import {findTileWithPosition} from "../../../util/tile-calculations"; const mapStateToProps = state => { return { + mapPosition: state.map.position, + mapScale: state.map.scale, isEnabled: () => state.construction.inRackConstructionMode, isValid: (x, y) => { if (state.interactionLevel.mode !== "ROOM") { -- cgit v1.2.3