Getting bounds or centre point from map


Hello, an application I’m working on uses Timemapper. I want to get the map bounds or centre point from the Leaflet map, and have been trying to add getBounds() or getCenter() to public/js/view.js using code like

leafletMapBounds  =;


 leafletMapBounds  = map.getBounds();

I’m getting errors like ‘ is not a function’ and ‘map is not defined’. Does anyone have any ideas?