Skip to content

Commit dfa6faf

Browse files
authored
clean data paths (#22)
1 parent a41d847 commit dfa6faf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/js/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ document.addEventListener('click', e => {
5050

5151

5252
document.addEventListener("DOMContentLoaded", async () => {
53-
const censusTractCsvUrl = "/data/census-tract-input-vector.csv";
54-
const censusTractGeoJsonUrl = "/data/census-estimates.geojson";
53+
const censusTractCsvUrl = "data/census-tract-input-vector.csv";
54+
const censusTractGeoJsonUrl = "data/census-estimates.geojson";
5555
let rawData = [];
5656
let mapLayer;
5757

@@ -127,7 +127,7 @@ document.addEventListener("DOMContentLoaded", async () => {
127127
}
128128

129129
async function loadOverlays() {
130-
const citiesData = await fetch('/data/cities.geojson').then(res => res.json());
130+
const citiesData = await fetch('data/cities.geojson').then(res => res.json());
131131
const citiesLayer = createGeoJsonOverlay(citiesData);
132132
overlays["Cities"] = citiesLayer;
133133
layerControl.addOverlay(citiesLayer, "Cities");

0 commit comments

Comments
 (0)