Browse Source

Merge pull request #2 from thebentern/master

Format display of lat / lng
pull/1/head
Sacha Weatherstone 5 years ago
committed by GitHub
parent
commit
087211883e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/components/Sidebar/SidebarNodes.tsx

9
src/components/Sidebar/SidebarNodes.tsx

@ -80,8 +80,13 @@ const SidebarNodes = (props: sidebarNodesProps) => {
<div className="flex">
<GlobeIcon className="my-auto mr-2 w-5 h-5" />
<p>
{node.data.position?.latitudeI},
{node.data.position?.longitudeI}
{
node.data.position?.latitudeI &&
node.data.position?.longitudeI
? `${node.data.position.latitudeI / 1e7},
${node.data.position.longitudeI / 1e7}`
: 'Unknown'
}
</p>
</div>

Loading…
Cancel
Save