Fix asynchronous geolocation function, update map to fully load during geolocation request