function searchCoffeeShop(shopName) {
		var index = coffeeShops.findIndex((x) => x.name === shopName);
		map.setCenter({
			lat: coffeeShops[index].latitude,
			lng: coffeeShops[index].longitude,
		});
		map.setZoom(18, true);
	}
// Function to find the coordinates of the corresponding coffee shop button being pressed and centers the map and zooms in on the location
Function to find the coordinates of the corresponding coffee shop button being pressed and centers the map and zooms in on the location
Function to find the coordinates of the corresponding coffee shop button being pressed and centers the map and zooms in on the location
function searchCoffeeShop(shopName) {
		var index = coffeeShops.findIndex((x) => x.name === shopName);
		map.setCenter({
			lat: coffeeShops[index].latitude,
			lng: coffeeShops[index].longitude,
		});
		map.setZoom(18, true);
	}
function searchCoffeeShop ( shopName ) { var index = coffeeShops . findIndex ( ( x ) => x . name === shopName ) ; map . setCenter ( { lat : coffeeShops [ index ] . latitude , lng : coffeeShops [ index ] . longitude , } ) ; map . setZoom ( 18 , true ) ; }
Function to find the coordinates of the corresponding coffee shop button being pressed and centers the map and zooms in on the location
Function to find the coordinates of the corresponding coffee shop button being pressed and centers the map and zooms in on the location