Skip to content

Commit

Permalink
Comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-NRCan committed Oct 2, 2024
1 parent e37e00f commit 665d171
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
/>

<!-- <script src="http://localhost:8080/cgpv-main.js"></script> -->
<script src="https://alex-nrcan.github.io/geoview/cgpv-main.js"></script>
<!-- <script src="https://canadian-geospatial-platform.github.io/geoview/public/cgpv-main.js"></script> -->
<!-- <script src="https://alex-nrcan.github.io/geoview/cgpv-main.js"></script> -->
<script src="https://canadian-geospatial-platform.github.io/geoview/public/cgpv-main.js"></script>

<style>
/* To help with display */
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export const downloadJson = (data: unknown, filename: string): void => {
export const guessEstimatedStep = (minValue: number, maxValue: number): number | undefined => {
const day1 = 86400000; // 24h x 60m x 60s x 1000ms = 86,400,000ms in a day
const month1 = day1 * 30; // 2,592,000,000ms in 1 month
const months2 = month1 * 2; // 5,184,000,000ms in 2 months
const year1 = day1 * 365; // 31,536,000,000ms in 1 year
const years2 = year1 * 2; // 63,072,000,000ms in 2 years
const years10 = year1 * 10; // 63,072,000,000ms in 2 years
const months2 = month1 * 2; // 315,360,000,000 in 10 years
const years10 = year1 * 10; // 315,360,000,000 in 10 years
const intervalDiff = maxValue - minValue;

let step: number | undefined;
Expand Down

0 comments on commit 665d171

Please sign in to comment.