Skip to content

Commit

Permalink
Move radar on new location
Browse files Browse the repository at this point in the history
  • Loading branch information
ALEEF02 committed Sep 26, 2022
1 parent e81c451 commit f15bec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ function checkPosition(position) {
url = ('https://lfweather.herokuapp.com/forecast/' + lat + ',' + lon);
console.log('Found user location, setting new latitude and longitude: ' + lat + ', ' + lon);
console.log('New URL: ' + url);
//document.getElementById('map-embed-iframe').src = 'https://maps.darksky.net/@radar,' + lat + ',' + lon + ',10?domain=file%3A%2F%2F%2FC%3A%2FUsers%2Ffordf%2FDesktop%2Flfweather%2Findex.html&auth=1547925784_1597c1ace68e31ce860f03d19e60ca58&marker=' + lat + '%2C' + lon + '&embed=true&timeControl=false&fieldControl=false&defaultField=radar';
document.getElementById('map-embed-iframe').src = 'https://maps.darksky.net/@radar,' + lat + ',' + lon + ',10?domain=file%3A%2F%2F%2FC%3A%2FUsers%2Ffordf%2FDesktop%2Flfweather%2Findex.html&auth=1547925784_1597c1ace68e31ce860f03d19e60ca58&marker=' + lat + ',' + lon + '&embed=true&timeControl=false&fieldControl=false&defaultField=radar';
//console.log('New radar link: ' + document.getElementById('map-embed-iframe').src);
if (!(position.coords.latitude > '33.606301' && position.coords.latitude < '33.706016' && position.coords.longitude > '-117.718207' && position.coords.longitude < '-117.619621')) {
console.log('User outside Lake Forest, beginning reverse geocode');
Expand Down

0 comments on commit f15bec3

Please sign in to comment.