i have a basic geoJson program in javascript by using leaflet API.
area.fitBounds(area.getBounds());