implemented comment for showing posts from other region if neccessary
This commit is contained in:
@@ -3,7 +3,8 @@ export const locationUtils = {
|
|||||||
let location = await this.returnCurrentLocation().catch((error) => {
|
let location = await this.returnCurrentLocation().catch((error) => {
|
||||||
console.error('Error getting current location', error);
|
console.error('Error getting current location', error);
|
||||||
});
|
});
|
||||||
return {lon: location.longitude, lat: location.latitude};
|
return {lon: location.longitude, lat: location.latitude}; // aktuelle Koordinaten
|
||||||
|
//return {lat: 48.71180776236015, lon: 9.388372081644336}; // Koordinaten von Deizisau (Vorführung für regionale Posts)
|
||||||
},
|
},
|
||||||
async returnCurrentLocation() {
|
async returnCurrentLocation() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user