Map Component - Zoom

How do you focus the map component so that it zooms into cover the co-ordinates of the selected record or records? Currently I am having to manually pan in and out to find locations