DB lab 4
This commit is contained in:
@@ -3,7 +3,7 @@ fetch('./js/Meteorite_Landings.json')
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
const tableBody = document.getElementById("meteorTableBody");
|
||||
data.forEach(meteor => {
|
||||
data.splice(0,50).forEach(meteor => { // Just get 50 values for now
|
||||
const row = document.createElement("tr");
|
||||
const id = document.createElement("td");
|
||||
id.textContent = meteor.id ?? "-";
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
// Load the map from the Google Maps JS API
|
||||
function loadMap() {
|
||||
const map = new google.maps.Map(document.getElementById("map"), {
|
||||
center: {lat: 0, lng: 0}, // Center of the globe
|
||||
zoom: 2
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Add custom markers from meteor data
|
||||
Reference in New Issue
Block a user