The JavaScript library to easily implement a Google Maps map into your react application. It comes with a collection of React hooks to access the map instance or different Maps JavaScript Services.
MIT License
77
stars
13
forks
source link
Issues with markers on Google Maps API - not always loading #145
I'm working on a website with Google Maps API, particularly with @ubilabs/google-maps-react-hooks.
I'm not very experienced so I'm having some difficulties understanding why there's an issue.
When I load the website (either locally or online) the markers don't always show up. It could be on loading the site at first or when I refresh, they disappear and reapper upon new refreshing of the page. This never happens if I have my developer tools open (docked or undocked) and I can't figure out why! I've been trying for days.
I'm working on a website with Google Maps API, particularly with @ubilabs/google-maps-react-hooks. I'm not very experienced so I'm having some difficulties understanding why there's an issue. When I load the website (either locally or online) the markers don't always show up. It could be on loading the site at first or when I refresh, they disappear and reapper upon new refreshing of the page. This never happens if I have my developer tools open (docked or undocked) and I can't figure out why! I've been trying for days.
index.txs
TestMap.tsx
You can see here what I'm referring to! (I'm refreshing the website so it shows the problem)
Thanks in advance for any help!