New geolocation error
This commit is contained in:
parent
0342bdf33f
commit
2bad9d4083
3 changed files with 5 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ class CenterInMyPosition extends React.Component {
|
||||||
// window.alert(cod);
|
// window.alert(cod);
|
||||||
if (cod === 1) Bert.alert(self.props.t('geo-not-perms-error'), 'danger');
|
if (cod === 1) Bert.alert(self.props.t('geo-not-perms-error'), 'danger');
|
||||||
else if (cod === 2) Bert.alert(self.props.t('geo-not-avail-error'), 'danger');
|
else if (cod === 2) Bert.alert(self.props.t('geo-not-avail-error'), 'danger');
|
||||||
|
else if (cod === 3) Bert.alert(self.props.t('geo-not-timeout-error'), 'danger');
|
||||||
else Bert.alert(error.message, 'danger');
|
else Bert.alert(error.message, 'danger');
|
||||||
computation.stop();
|
computation.stop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -227,5 +227,6 @@
|
||||||
"Escribe un lugar para centrar el mapa":
|
"Escribe un lugar para centrar el mapa":
|
||||||
"Write a place to center the map",
|
"Write a place to center the map",
|
||||||
"geo-not-perms-error": "Upppps: it seems we do not have permission to know your location",
|
"geo-not-perms-error": "Upppps: it seems we do not have permission to know your location",
|
||||||
"geo-not-avail-error": "Upppps: it seems your location is not available"
|
"geo-not-avail-error": "Upppps: it seems your location is not available",
|
||||||
|
"geo-not-timeout-error": "Upppps: Your device is taking too long to know your location"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -314,5 +314,6 @@
|
||||||
"Escribe un lugar para centrar el mapa":
|
"Escribe un lugar para centrar el mapa":
|
||||||
"Escribe un lugar para centrar el mapa",
|
"Escribe un lugar para centrar el mapa",
|
||||||
"geo-not-perms-error": "Upppps: parece que no tenemos permiso para conocer tu ubicación",
|
"geo-not-perms-error": "Upppps: parece que no tenemos permiso para conocer tu ubicación",
|
||||||
"geo-not-avail-error": "Upppps: parece tu ubicación no está disponible"
|
"geo-not-avail-error": "Upppps: parece tu ubicación no está disponible",
|
||||||
|
"geo-not-timeout-error": "Upppps: tu dispositivo está tardando demasiado en conocer tu ubicación"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue