From a7ff7cd4da6c47cd90832f6c3a4903e5f87a8430 Mon Sep 17 00:00:00 2001
From: Janne Alatalo <janne.alatalo@jamk.fi>
Date: Thu, 27 Sep 2018 13:38:07 +0300
Subject: [PATCH] Add link to gitlab REAME.md page

At the moment the link is hard coded to the component.
---
 src/PointMap.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/PointMap.js b/src/PointMap.js
index 98f90c7..0f4aaeb 100644
--- a/src/PointMap.js
+++ b/src/PointMap.js
@@ -236,6 +236,26 @@ class PointMap extends Component {
     );
   }
 
+  getMoreInfoLink() {
+    const styles = {
+      container: {
+        position: "absolute",
+        zIndex: 10,
+        top: "94%",
+      },
+    };
+    return (
+      <div style={styles.container}>
+        <Button
+          href="https://gitlab.labranet.jamk.fi/data-analysis-and-ai/lam-station-visualization/blob/master/README.md"
+          size="large"
+        >
+          More Info
+        </Button>
+      </div>
+    );
+  }
+
   render() {
     const point_coords = this.props.points.toArray();
     const layers = [
@@ -291,6 +311,7 @@ class PointMap extends Component {
         }
         {this.getColorInfo(color_spectrum, undef_color)}
         {this.getTips()}
+        {this.getMoreInfoLink()}
       </div>
     );
   }
-- 
GitLab