From cd6e5fab3500fbee65599d104c92f3451f3c2fd4 Mon Sep 17 00:00:00 2001 From: Jonas Thers Date: Sat, 28 Sep 2019 19:20:04 +0300 Subject: [PATCH 1/2] Centered the circles --- .idea/workspace.xml | 70 +++++++++++++++++++++++++++++++++++++++++ public/citybike.svg | 1 + public/index.html | 4 +-- src/ThirtyMinutesMap.js | 21 +++++++++---- 4 files changed, 88 insertions(+), 8 deletions(-) create mode 100644 .idea/workspace.xml create mode 100644 public/citybike.svg diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..4f38be1 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1569672708675 + + + + + + + + + \ No newline at end of file diff --git a/public/citybike.svg b/public/citybike.svg new file mode 100644 index 0000000..362b199 --- /dev/null +++ b/public/citybike.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/index.html b/public/index.html index a146b6f..61de30c 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@ - + - React App + 30 minutes diff --git a/src/ThirtyMinutesMap.js b/src/ThirtyMinutesMap.js index 8754dca..a8bf010 100644 --- a/src/ThirtyMinutesMap.js +++ b/src/ThirtyMinutesMap.js @@ -17,6 +17,14 @@ const windowSizing = () => ({ class ThirtyMinutesMap extends React.Component { + /*constructor(props) { + super(props); + this.state = { + circleposition: null + }; + this.onStationClick = this.onStationClick.bind(this); + }*/ + componentDidMount() { console.log("Map get mounted"); } @@ -27,17 +35,18 @@ class ThirtyMinutesMap extends React.Component { } } - onStationClick(e) { - // center circle on clicked station - // do some magic to define the paths etc..... - } + /*onStationClick(e) { + this.setState({ + circleposition: [this.props.lat, this.props.lng] + }); + }*/ render() { // @todo: somewhere else const stationMarker = Leaflet.icon({ iconUrl: stationIcon, - iconSize: [38, 95], - iconAnchor: [22, 94], + iconSize: [35, 35], + iconAnchor: [15.5, 15.5], popupAnchor: [-3, -76], shadowSize: [68, 95], shadowAnchor: [22, 94] From 1ebbe3596f5ea53bd20be71dd989a2bb8b03ca0d Mon Sep 17 00:00:00 2001 From: Piotr Majkrzak Date: Tue, 1 Oct 2019 09:32:18 +0300 Subject: [PATCH 2/2] Drop .idea files --- .idea/workspace.xml | 70 --------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 4f38be1..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1569672708675 - - - - - - - - - \ No newline at end of file