Skip to content
Advertisement

Tag: react-google-maps

How to get Lat and Lng from StandaloneSearchBox?

I use the react-google-maps StandaloneSearchBox and query the locations of my points of interest. This works as far as it goes. However, I get back functions for the location and not the actual value. How do I actually get the lat and lng values similar to the viewport. Answer You can just call the lat and lng functions to get

@react-google-maps/api onClick not working

I’m using @react-google-maps/api library and everything in package has been working correctly. Now I just noticed that component’s onClick event has lost its functionality and in my website the functions attached to it are not working. I don’t think I have changed any code related to onClick functioanlity. This is easily seen as I have also used with clickable markers

Advertisement