Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elevation Column #189

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update script.js
Fix the initialisation/persistence to localStorage for SiteNegativeAngle
  • Loading branch information
V999TEC committed Jul 14, 2022
commit a7710838170832d4333a57cb90e9195ee45eecd4
5 changes: 4 additions & 1 deletion public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function initialize() {

// Initialize settings from local storage
setElevation(); ////
setNegativeAngle();////
setAngle();////

filterGroundVehicles(false);
filterBlockedMLAT(false);
Expand Down Expand Up @@ -2086,6 +2086,9 @@ function resetMap() {
localStorage['SiteCirclesInterval'] = SiteCirclesInterval = DefaultSiteCirclesInterval;
setRangeRings();
createSiteCircleFeatures();

localStorage['SiteElevationAsl'] = SiteElevationAsl = DefaultSiteElevationAsl; ////
localStorage['SiteNegativeAngle'] = SiteNegativeAngle = DefaultSiteNegativeAngle; ////

// Set and refresh
OLMap.getView().setZoom(ZoomLvl);
Expand Down