diff --git a/code/heatmap.js b/code/heatmap.js index 985e88f..acede63 100644 --- a/code/heatmap.js +++ b/code/heatmap.js @@ -30,7 +30,7 @@ var map = new mapboxgl.Map({ }); -fetch('/data/api_output.json') +fetch('data/api_output.json') .then(response => response.json()) .then(data => { const geojsonData = convertToGeoJSON(data); @@ -74,18 +74,3 @@ fetch('/data/api_output.json') }); }); - - - -// old point layer from JSON -// fetch('../data/api_output.json') -// .then(response => response.json()) -// .then(data => { -// data.forEach(item => { -// new mapboxgl.Marker() -// .setLngLat([item.geometry.location.lng, item.geometry.location.lat]) -// .addTo(map); -// }); -// }) -// .catch(error => console.error('Error:', error)); -// }); \ No newline at end of file diff --git a/heatmap.html b/index.html similarity index 71% rename from heatmap.html rename to index.html index 74208b8..9716431 100644 --- a/heatmap.html +++ b/index.html @@ -5,8 +5,8 @@
- + - +