austingreenmap icon indicating copy to clipboard operation
austingreenmap copied to clipboard

User location marker doesn't update

Open luqmaan opened this issue 10 years ago • 1 comments

The user location marker doesn't update as you move.

Also, sometimes it just doesn't show up because of timeouts.

I think we can fix this by adding changing getCurrentPosition to watchPosition here https://github.com/open-austin/austingreenmap/blob/master/client/js/utils/index.js#L13-L17. https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition

We may also need to add retries in case it throws an error.

luqmaan avatar Aug 02 '15 20:08 luqmaan

Ooh, we may need to figure out HTTPS + GitHub pages at some point. https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins

image

luqmaan avatar Aug 02 '15 20:08 luqmaan