diff --git a/index.html b/index.html index b3d1ec0..2546685 100644 --- a/index.html +++ b/index.html @@ -86,7 +86,8 @@ document.getElementById('kp_3').textContent = Number(kp_3.toFixed(2)); } - window.onload = api; + //window.onload = api; + api(); var mymap = L.map('mapid').setView([67.8488, 20.3027], 6); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { @@ -112,7 +113,8 @@ addClouds(data.geometry.coordinates[i][1],data.geometry.coordinates[i][0],data.timeSeries[0].parameters[0].values[i]) } } - window.onload = clouds; + //window.onload = clouds; + clouds(); function addClouds(lat,lon,opa){ var circle = L.circle([lat, lon], {