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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
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> |
|
|
|
|
|
|
|
|