Closed itsoriki closed 5 months ago
You're correct - the thing is this useEffect needs to sit inside the map context in order for the setView to work properly - For that we must use one of our own components, i.e. the MapIndex
component or introduce a new one with a clear name and a single purpose being the centering mechanism (like I tried to do here...).
What do you think @NoamGaash ?
Check out the error being thrown when I try to do as you suggest:
I see. Have you tried editing center={position.loc}
?
Description
Resolve #726
CONTRIBUTING.md
.prettierrc
file for a smooth prettier development experience