I am making a web app based on reactjs that uses google maps. For using google maps I have used react-google-maps library. I need latitude and longitude of center of map dynamically as it's value can change when map is dragged.
In documentation, it's stated that getCenter() function returns latLng of center of map but I can't find any good example how to use it. So please help me to find the center of map.