Skip to content

Commit

Permalink
minor changes to geopanel info
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jun 3, 2024
1 parent 690a5db commit f7ea8bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ const GeoPanel = () => {
let coordinateInfo;
if (metadata && metadata['coord']) {
const coord = metadata['coord'];
coordinateInfo = `Latitude: ${coord.latitude}, longitude: ${coord.longitude}, elevation: ${coord.elevation}`;
coordinateInfo = `Latitude: ${coord.latitude}, Longitude: ${coord.longitude}, Elevation: ${coord.elevation}m`;
}

return (
<div className={styles.geo}>
<img src={GeoImg} onClick={onClick} alt="geo" />
{coordinateInfo ? (
<p>{coordinateInfo}</p>
<a onClick={onClick}>{coordinateInfo}</a>
) : (
<a onClick={onClick}>Click to set location</a>
)}
Expand Down

0 comments on commit f7ea8bf

Please sign in to comment.