Needing help with this code. Map not showing with navigator service

I am testing the navigator service to get the devices current location, center the map to this location and display a marker there. When the app starts, the map does not load. I only see a white screen with the header nav bar at the top. What is wrong with the code? If I dont use the navigator approach it works fine and the map shows up.

code pen:

thanks.