diff --git a/frontend/src/components/Apartment/MapInfo.tsx b/frontend/src/components/Apartment/MapInfo.tsx index 3e8c83d3..c882bac1 100644 --- a/frontend/src/components/Apartment/MapInfo.tsx +++ b/frontend/src/components/Apartment/MapInfo.tsx @@ -133,13 +133,17 @@ const useStyles = makeStyles((theme) => ({ * This component is used in the ApartmentPage to display the map and location * information of each apartment, including its location on Google Map, address, * and time required for walking to campus from different Cornell landmarks. - * It uses Material-UI components for consistent styling. + * It uses Material-UI components for consistent styling and Google Maps React + * for map functionality. * * @param Props - Contains: * - `address`: The address of the apartment. * - `latitude`: The latitude of the apartment location. * - `longitude`: The longitude of the apartment location. - * - `walkTime`: The walk time from the apartment to campus landmarks. + * - `travelTimes`: The travel times from the apartment to campus landmarks. + * - `handleClick`: Function to handle clicking the expand button to show full screen map view. + * - `mapToggle`: Boolean toggle used by parent component to trigger resetting map zoom/center. + * - `isMobile`: Boolean indicating if viewing on mobile device. */ function MapInfo({ address, diff --git a/frontend/src/components/Apartment/MapModal.tsx b/frontend/src/components/Apartment/MapModal.tsx index 0b3ed270..25c11bc8 100644 --- a/frontend/src/components/Apartment/MapModal.tsx +++ b/frontend/src/components/Apartment/MapModal.tsx @@ -131,12 +131,11 @@ interface MapModalProps extends BaseProps { * - `aptName`: The name of the apartment. * - `open`: Boolean to control the visibility of the modal. * - `onClose`: Function to handle closing the modal. - * - `setOpen`: Function to set the open state of the modal. * - `address`: The address of the apartment. * - `latitude`: The latitude of the apartment location (default: 0). * - `longitude`: The longitude of the apartment location (default: 0). - * - `walkTime`: The walk time from the apartment to campus landmarks (default: 0). - * - `driveTime`: The drive time from the apartment to campus landmarks (default: 0). + * - `travelTimes`: Object containing walking times to campus landmarks. + * - `isMobile`: Boolean indicating if viewing on mobile device. */ const MapModal = ({