load scores every 5 minutes and display a colored map

This commit is contained in:
2025-11-19 17:32:32 -08:00
parent b4487ffd72
commit e805b2ea53
7 changed files with 135 additions and 489 deletions

View File

@ -12,13 +12,7 @@
<div id="map"></div>
<script>
function style(feature) {
// Customize color based on a feature property; e.g., 'type' or 'category'
switch(feature.properties.type) {
case 'park': return { color: '#228B22' }; // green
case 'water': return { color: '#1E90FF' }; // blue
case 'residential': return { color: '#FFD700' }; // gold
default: return { color: '#FF0000' }; // red fallback
}
return { color: feature.properties.color};
}
var map = L.map('map').setView([47.6062, -122.3321], 12);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {