Fix tests

This commit is contained in:
Pieter Vander Vennet 2024-06-18 00:51:17 +02:00
parent 66a48daba8
commit 133ea2f8dc
5 changed files with 76 additions and 31 deletions

View file

@ -92,7 +92,7 @@ export default class InitialMapPositioning {
const [lat, lon] = osmObject.centerpoint()
this.location.setData({ lon, lat })
})
} else if (Constants.GeoIpServer && lat.data === defaultLat && lon.data === defaultLon) {
} else if (Constants.GeoIpServer && lat.data === defaultLat && lon.data === defaultLon && !Utils.runningFromConsole) {
console.log("Using geoip to determine start location...")
// We use geo-IP to zoom to some location
Utils.downloadJson<{ latitude: number, longitude: number }>(