forked from MapComplete/MapComplete
Fix tests
This commit is contained in:
parent
66a48daba8
commit
133ea2f8dc
5 changed files with 76 additions and 31 deletions
|
@ -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 }>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue