Skip to content

Commit

Permalink
remove demo location
Browse files Browse the repository at this point in the history
  • Loading branch information
00magikarp committed Jan 11, 2025
1 parent 2529e2e commit c21c282
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion js/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function requestLocationPermission(callback) {

if (callback) callback(null, null);
}, {
timeout: 20 * 1000,
timeout: 10 * 1000,
enableHighAccuracy: true
}
);
Expand Down
3 changes: 0 additions & 3 deletions map.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ <h2 style="margin: 0;">
if (user_x === null || user_y === null) {
map = L.map('map').setView([threat_x, threat_y], 14);
} else {
// TODO: change when done with demo code
user_x = 39.149978876760755;
user_y = -77.2059241960242;
const midpoint_x = (user_x + threat_x) / 2;
const midpoint_y = (user_y + threat_y) / 2;
const d = Math.sqrt(Math.pow(user_x - threat_x, 2) + Math.pow(user_y - threat_y, 2));
Expand Down

0 comments on commit c21c282

Please sign in to comment.