summaryrefslogtreecommitdiff
path: root/src/containers/map/layers/MapLayer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/map/layers/MapLayer.js')
-rw-r--r--src/containers/map/layers/MapLayer.js15
1 files changed, 15 insertions, 0 deletions
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;