You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
// SARS-CoV-2-Viz
|
|
// Animated COVID case count visualization
|
|
// Copyright 2022 Edward L. Platt <ed@elplatt.com>
|
|
|
|
const usUrl = "https://cdn.jsdelivr.net/npm/us-atlas@3/counties-albers-10m.json";
|
|
|
|
async function getFeatures(onProgress) {
|
|
const content = await fetchWithProgress(usUrl, onProgress);
|
|
return content;
|
|
}
|
|
|
|
async function parseFeatures(content, onProgress) {
|
|
onProgress("0%");
|
|
let features = JSON.parse(content);
|
|
onProgress("100%");
|
|
return features;
|
|
}
|
|
|