From 396abfe03f85f294d911d8362b7afce5600620c6 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 2 Oct 2018 23:11:09 +1300 Subject: Update map icons --- modern/public/category/car.svg | 4 ++++ modern/src/MainMap.js | 13 +++++++------ modern/src/reducers/index.js | 4 ++-- 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 modern/public/category/car.svg (limited to 'modern') diff --git a/modern/public/category/car.svg b/modern/public/category/car.svg new file mode 100644 index 00000000..7dad87d2 --- /dev/null +++ b/modern/public/category/car.svg @@ -0,0 +1,4 @@ + + + + diff --git a/modern/src/MainMap.js b/modern/src/MainMap.js index fab17777..5a096c53 100644 --- a/modern/src/MainMap.js +++ b/modern/src/MainMap.js @@ -18,10 +18,11 @@ class MainMap extends Component { const position = [this.state.lat, this.state.lng] const markers = this.props.positions.map(position => - - - TEST + + + + + ); @@ -29,8 +30,8 @@ class MainMap extends Component { return ( + attribution="© OpenStreetMap contributors" + url="https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png" /> {markers} ) diff --git a/modern/src/reducers/index.js b/modern/src/reducers/index.js index 962d83c2..ac592bfe 100644 --- a/modern/src/reducers/index.js +++ b/modern/src/reducers/index.js @@ -9,12 +9,12 @@ function rootReducer(state = initialState, action) { case 'UPDATE_DEVICES': return Object.assign({}, { ...state, - devices: [...state.devices, ...action.devices] + devices: [...action.devices] }); case 'UPDATE_POSITIONS': return Object.assign({}, { ...state, - positions: [...state.positions, ...action.positions] + positions: [...action.positions] }); default: return state; -- cgit v1.2.3