Fixing marker position text

This commit is contained in:
Brice Zele 2020-04-06 14:46:31 +01:00
parent 921f8b1a30
commit bed929ed63
2 changed files with 16 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -475,7 +475,7 @@ class Home extends BaseScreen {
pitch: 0,
heading: 0,
altitude: 5,
zoom: 13
zoom: 12
}, 1000)
this.setState({ myPositionIsAnimated: true })
@ -542,7 +542,7 @@ class Home extends BaseScreen {
longitudeDelta: 0.01,
}
this.setState({ myPosition: myPosition });
this.refocusMap(false);
this.refocusMap(true);
}
/*if (Platform.OS === 'android') {
@ -1417,7 +1417,9 @@ class Home extends BaseScreen {
latitude: parseFloat(user.latitude),
longitude: parseFloat(user.longitude)
}
this.setState({ myPosition });
this.refocusMap(false);
/*
this.mapRef.animateCamera({
center: {
latitude: myPosition.latitude,
@ -1427,7 +1429,7 @@ class Home extends BaseScreen {
heading: 0,
altitude: 5,
zoom: 12
}, 1000);
}, 1000); */
if (user.category) {
this.setState({ loadingDialog: false })