Adds function that centers on markers based on clicking search results.