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 = this.map.getBounds();
or
leafletMapBounds = map.getBounds();
I’m getting errors like ‘this.map.getCenter is not a function’ and ‘map is not defined’. Does anyone have any ideas?