Skip to content
Snippets Groups Projects
Commit a7f9287b authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

More systemtime bug fix

parent 026a98e1
No related branches found
No related tags found
No related merge requests found
Pipeline #24 failed
......@@ -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++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment