Skip to content

Commit

Permalink
style: better organize identify results
Browse files Browse the repository at this point in the history
refs #190
  • Loading branch information
steveoh committed Oct 4, 2022
1 parent b91a29c commit e71a3d2
Showing 1 changed file with 26 additions and 31 deletions.
57 changes: 26 additions & 31 deletions src/components/Identify/Identify.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,29 +269,23 @@ const IdentifyInformation = ({ apiKey, wkid = 3857, location }) => {
<hr />
</Col>
<Col>
<strong>UTM 12 NAD83 Coordinates</strong>
<strong>Approximate Street Address</strong>
<p className="identify--muted">
{spatial.x}, {spatial.y}
<span className="d-block">{address}</span>
<a href={spatial.googleMapsLink} className="text-info" target="_blank" rel="noopener noreferrer">
Google Street View
</a>
<FontAwesomeIcon
icon={faExternalLinkAlt}
className="identify--muted"
style={{ marginLeft: '.5em' }}
></FontAwesomeIcon>
</p>
</Col>
<Col>
<strong>Approximate Street Address</strong>
<p className="identify--muted">{address}</p>
</Col>
<Col>
<strong>Zip Code</strong>
<p className="identify--muted">{zip}</p>
</Col>
<Col>
<strong>Land Administration Category</strong>
<p className="identify--muted">{ownership}</p>
</Col>
<Col>
<strong>WGS84 Coordinates</strong>
<p className="identify--muted">
{spatial.lat}, {spatial.lon}
</p>
</Col>
<Col>
<strong>City</strong>
<p className="identify--muted">{city}</p>
Expand All @@ -301,8 +295,16 @@ const IdentifyInformation = ({ apiKey, wkid = 3857, location }) => {
<p className="identify--muted">{county}</p>
</Col>
<Col>
<strong>US National Grid</strong>
<p className="identify--muted">{grid}</p>
<strong>UTM 12 NAD83 Coordinates</strong>
<p className="identify--muted">
{spatial.x}, {spatial.y} meters
</p>
</Col>
<Col>
<strong>WGS84 Coordinates</strong>
<p className="identify--muted">
{spatial.lat}, {spatial.lon}
</p>
</Col>
<Col>
<strong>Elevation Meters</strong>
Expand All @@ -313,19 +315,12 @@ const IdentifyInformation = ({ apiKey, wkid = 3857, location }) => {
<p className="identify--muted">{elevation.feet}</p>
</Col>
<Col>
<a
href={spatial.googleMapsLink}
className="text-info position-static"
target="_blank"
rel="noopener noreferrer"
>
Google Street View
</a>
<FontAwesomeIcon
icon={faExternalLinkAlt}
className="identify--muted"
style={{ marginLeft: '.5em' }}
></FontAwesomeIcon>
<strong>Land Administration Category</strong>
<p className="identify--muted">{ownership}</p>
</Col>
<Col>
<strong>US National Grid</strong>
<p className="identify--muted">{grid}</p>
</Col>
</Container>
);
Expand Down

0 comments on commit e71a3d2

Please sign in to comment.