{{ preview.html | safe }} diff --git a/web/src/padelnomics/static/js/article-maps.js b/web/src/padelnomics/static/js/article-maps.js index 38de362..bf7753d 100644 --- a/web/src/padelnomics/static/js/article-maps.js +++ b/web/src/padelnomics/static/js/article-maps.js @@ -58,7 +58,8 @@ bounds.push([c.lat, c.lon]); }); if (bounds.length) map.fitBounds(bounds, { padding: [24, 24] }); - }); + }) + .catch(function(err) { console.error('Country map fetch failed:', err); }); } var VENUE_ICON = L.divIcon({ @@ -94,7 +95,8 @@ .bindTooltip(tip, { className: 'map-tooltip', direction: 'top', offset: [0, -7] }) .addTo(map); }); - }); + }) + .catch(function(err) { console.error('City map fetch failed:', err); }); } /* Dynamically load Leaflet JS then init maps */