Fix a bug with manual address selection

This commit is contained in:
Lucas Verney 2018-09-13 15:52:39 +02:00
parent e5838996ea
commit b168fe2b9e
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,10 @@ export default {
onManualLocationPicker(value) { onManualLocationPicker(value) {
this.$store.dispatch( this.$store.dispatch(
'setCurrentPosition', 'setCurrentPosition',
{ latLng: [value.latlng.lat, value.latlng.lng] }, {
coords: { latitude: value.latlng.lat, longitude: value.latlng.lng },
timestamp: new Date().getTime(),
},
); );
}, },
}, },

View File

@ -23,7 +23,6 @@ export const REPORT_TYPES = {
image: accidentIcon, image: accidentIcon,
marker: accidentMarker, marker: accidentMarker,
markerLarge: accidentMarker, markerLarge: accidentMarker,
}, },
gcum: { gcum: {
description: 'reportLabels.gcumDescription', description: 'reportLabels.gcumDescription',