From a7f9287bf4400e3129ec139b6246b94e8a4629fb Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Fri, 23 Nov 2018 11:08:40 +0100 Subject: [PATCH] More systemtime bug fix --- VIPSWeb/static/js/frontpageMap.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/VIPSWeb/static/js/frontpageMap.js b/VIPSWeb/static/js/frontpageMap.js index 01271906..ce0eda28 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++) -- GitLab