I have a back to home function
function panToHome(){
latLng = [current.lat, current.lng];
map.setView(latLng, 8);
}
I want to save the current view as history, so user can switch back as they might click mistakely. So the question is how can I know the current latlng on Mapbox?!