Skip to content

Commit

Permalink
Bump max date and Build ID for colors and filters
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-zk committed Sep 14, 2024
1 parent 3880082 commit cbdb0d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/map/FilterSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LineColorType } from "../enums";
const defaults = {
filterByDate: false,
minDate: Math.floor(new Date("2018-06-01").getTime()),
maxDate: Math.floor(new Date("2024-06-01").getTime()),
maxDate: Math.floor(new Date("2024-08-01").getTime()),
showCars: true,
showTrekkers: true,
polygonFilter: null,
Expand Down
4 changes: 2 additions & 2 deletions js/map/layers/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FilterSettings } from "../FilterSettings.js";
import { interpolateTurbo } from "d3-scale-chromatic";

const earliestDate = Math.floor(new Date("2018-06-01").getTime());
const latestDate = Math.floor(new Date("2024-06-01").getTime());
const latestDate = Math.floor(new Date("2024-08-01").getTime());

const carLineColor = "rgba(26, 159, 176, 1)";
const trekkerLineColor = "rgba(173, 140, 191, 1)";
Expand Down Expand Up @@ -62,7 +62,7 @@ class CoverageColorer {
this.colorFunction = (metadata) => interpFn(offsetFn(convFn(metadata.timestamp)));
} else if (filterSettings.lineColorType === LineColorType.BuildId) {
const start = 511228947; // lowest value discovered since I started scraping
const end = 2100000000; // highest value plus some breathing room
const end = 2200000000; // highest value plus some breathing room
const convFn = createValueToPercentFunction(start, end);
const offsetFn = offsetTurbo;
const interpFn = interpolateTurbo;
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h3>Capture date</h3>
</tr>
<tr>
<td>To:</td>
<td><input type="date" id="coverage-max-date" name="coverage-max-date" value="2024-06-01"></td>
<td><input type="date" id="coverage-max-date" name="coverage-max-date" value="2024-08-01"></td>
</tr>
</table>
</div>
Expand Down

0 comments on commit cbdb0d2

Please sign in to comment.