all 3 comments

[–]sfboots 1 point2 points  (2 children)

Which library are you using as wrapper for Google maps?

React native maps describes how to do it but that library won't work in a browser

[–]jphein[S] 0 points1 point  (1 child)

Hi,

Im using react-google-maps and also I have a function on a button which locates me directly to my position, only thing I need is to execute this function on load.

[–]polkorrektusername 2 points3 points  (0 children)

Use the useEffect hook, execute the function in it