Skip to content

Commit

Permalink
Minor work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
JoakimEwenson committed Aug 18, 2020
1 parent 9e5dfdf commit 8997cbf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"command": "npm start",
"name": "Run npm start",
"request": "launch",
"type": "node-terminal"
},
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
5 changes: 3 additions & 2 deletions src/Components/NearbyLocations.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,18 @@ export default function NearbyLocations({
{...viewport}
onViewportChange={(nextViewport) => setViewport(nextViewport)}
>
<div style={{ position: "absolute", right: 0 }}>
<div className="p-2" style={{ position: "absolute", right: 0, zIndex: 99 }}>
<NavigationControl showCompass={false} />
</div>
{locationList.map((loc) => (
<Popup
closeButton={false}
sortByDepth={true}
key={loc.id}
latitude={parseFloat(loc.lat)}
longitude={parseFloat(loc.lon)}
>
<div className="p-1 text-center">
<div className="p-1 text-center" style={loc.id === locationId ? {zIndex: 98} : {}}>
<i className="fas fa-temperature-high"></i>
<br />
<small>
Expand Down

1 comment on commit 8997cbf

@vercel
Copy link

@vercel vercel bot commented on 8997cbf Aug 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.