Location-centric local discovery app. An open-source react-native app where users can pin points of interest on a shared map. Visibility is limited to nearby points of interest.
MIT License
8
stars
9
forks
source link
Geo markers alternate every 15 seconds on the map #25
In componentDidMount we set an interval to take the user location from the browser every 15 seconds - this seems to cause them to alternate - we're probably not doing something right in the interval logic.
How to reproduce
./backend
http://localhost:3000/
See video at: https://drive.google.com/file/d/1zizAQ3-U2dm5HJQ_Nu9xANfgxH9nW9yk/view?usp=sharing
Additional information
This seems like a ReactJS rendering info, see this code: https://github.com/OSS-team-zulu/Zulu/blob/4b39d0a6118d43c272ac0fa191b08233b7b8b675/frontend/zulu/src/components/Map/MapGeojsonMarkers.jsx#L64-L74
In
componentDidMount
we set an interval to take the user location from the browser every 15 seconds - this seems to cause them to alternate - we're probably not doing something right in the interval logic.