I need to take all the four corners of the map (bounds) and the function for it on google maps API was map.getBounds().getNorthBounds(); but here it is not working.
map.getBounds().getNorthBounds();