Skip to content

G4rb4g3/custom loc provider#3167

Merged
mfazekas merged 2 commits intomainfrom
g4rb4g3/custom-loc-provider
Nov 13, 2023
Merged

G4rb4g3/custom loc provider#3167
mfazekas merged 2 commits intomainfrom
g4rb4g3/custom-loc-provider

Conversation

@mfazekas
Copy link
Contributor

CustomLoc provider component:

useEffect(() => {
   const interval = setInterval(() => {
      setLocation((location) => [location[0] + 0.0001, location[1] + 0.0001]);
   }, 500);
   return () => clearInterval(interval);
  }, []);

...
<CustomLocationProvider coordinate={location} />

@mfazekas mfazekas force-pushed the g4rb4g3/custom-loc-provider branch 3 times, most recently from c48830f to 64636ae Compare November 13, 2023 19:33
@mfazekas mfazekas force-pushed the g4rb4g3/custom-loc-provider branch from 64636ae to 055a732 Compare November 13, 2023 20:34
@mfazekas mfazekas merged commit f5ec4c7 into main Nov 13, 2023
@mfazekas mfazekas deleted the g4rb4g3/custom-loc-provider branch November 13, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants