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/MapLayer.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/containers/map/layers/MapLayer.js (limited to 'src/containers/map/layers/MapLayer.js') diff --git a/src/containers/map/layers/MapLayer.js b/src/containers/map/layers/MapLayer.js new file mode 100644 index 00000000..9ef5c662 --- /dev/null +++ b/src/containers/map/layers/MapLayer.js @@ -0,0 +1,15 @@ +import {connect} from "react-redux"; +import MapLayerComponent from "../../../components/map/layers/MapLayerComponent"; + +const mapStateToProps = state => { + return { + mapPosition: state.map.position, + mapScale: state.map.scale, + }; +}; + +const MapLayer = connect( + mapStateToProps +)(MapLayerComponent); + +export default MapLayer; -- cgit v1.2.3