I’m having some difficulties making my code work. I’m working on an interactive map and I want to add a function that when users “double click” it allows them to add a marker, the function is supposed to pull the long and lat from the map itself. I have this for the part where the function is used: And this
Tag: marker
How do I fetch Markers around the users location in React Native MapView?
I want to fetch top 5 markers that are closest to the users location (in order) and put that into a useState object. How can I achieve that? My map screen loadflow: Load map Get user location (stored in location useState) HTTP Get request for markers location (each marker got lat and ltd) Fetch markers around user (if agreed to