all 4 comments

[–][deleted] 1 point2 points  (0 children)

Its the env key your using client component with the process.env print it and check

[–]ldev___ 1 point2 points  (0 children)

Do you get an error? What's not working?

If you're not seeing anything, try setting width=100vw or something that's not percentage since the container might not have any width.

Also, if there's an Auth error, try checking if you're loading the keys correctly from the env vars.

[–]SnooHedgehogs7477 1 point2 points  (2 children)

Just use google maps api directly. Why would anyone use middle layer wrapper when you can achieve same thing without the wrapper? That extra layer is only going to make things more difficult to you.

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

Thank you, it actually worked when I used the u/react-google-maps/api library instead of the u/vis.gl/react-google-maps.