diff --git a/VIPSWeb/static/js/frontpageMap.js b/VIPSWeb/static/js/frontpageMap.js index 0127190650f53db342400f6498daff7fd5555d52..ce0eda28c196861542d12bb6a36fd4343b5aaf79 100755 --- a/VIPSWeb/static/js/frontpageMap.js +++ b/VIPSWeb/static/js/frontpageMap.js @@ -97,7 +97,7 @@ function initFrontpageMap(lonLat, zoomLevel, mapAttribution) }); // ------------ The observations layer (GeoJSON) --------------------- - currentDateInMillis = moment().subtract(settings.systemTimeOffsetMonths,"months").format("X") * 1000; // Reference for coloring the observations + currentDateInMillis = moment().add(settings.systemTimeOffsetMonths,"months").format("X") * 1000; // Reference for coloring the observations var observationFeatures = new ol.Collection(); // Starting on empty initAgeStyles(); observationLayer = new ol.layer.Vector({ @@ -419,7 +419,9 @@ function updateForecastLayers() - +/** + * Rendering the filteredObservations + */ var renderObservationFeatures = function(){ var geoJSON = {"type":"FeatureCollection","features":[]}; for(var i=0;i<filteredObservations.length;i++)