I have google map on a webpage which shows user location on it. It asks user's permission to grab its location and then loads map and show a marker there. It works well obviously when you are siting in a room and open it. But what if I am using mobile and walking on the road or sitting in a bus. How to update my position on map then? If you happen to see on google map in a bus, it shows your position (marker) moving along the bus. So how can we get user location on a still map without refreshing page and update its location along the bus?
Thank you!