Skip to content

Commit

Permalink
Complete initial retailer location map implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
davewalker5 committed Nov 20, 2023
1 parent 9cbb63e commit d850179
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/music-catalogue-ui/components/locationMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const LocationMap = ({ apiKey, latitude, longitude }) => {
bootstrapURLKeys={{ key: apiKey }}
defaultCenter={location}
defaultZoom={15}
></GoogleMapReact>
>
<div className={styles.locationMapMarker}></div>
</GoogleMapReact>
</div>
</>
);
Expand Down
12 changes: 12 additions & 0 deletions src/music-catalogue-ui/components/locationMap.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
height: 300px;
margin-bottom: 30px;
}

.locationMapMarker {
color: white;
background: red;
padding: 8px 8px;
display: inline-flex;
text-align: center;
align-items: center;
justify-content: center;
border-radius: 100%;
transform: translate(-50%, -50%);
}
4 changes: 0 additions & 4 deletions src/music-catalogue-ui/components/retailerDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ const RetailerDetails = ({ mapsApiKey, retailer, logout }) => {
<div className={styles.retailerDetailsContainer}>
<table className={styles.retailerDetailsTable}>
<tbody>
<tr>
<th>API Key:</th>
<td>{mapsApiKey}</td>
</tr>
<tr>
<th>Address:</th>
<td>{retailer.address1}</td>
Expand Down

0 comments on commit d850179

Please sign in to comment.