Skip to content

Commit

Permalink
#317 Fix time vectors not applying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jan 27, 2023
1 parent b4dd759 commit 644194f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/login/adminlogin.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: "Source Sans Pro";
src: url(/public/fonts/sourcesanspro/SourceSansPro-Regular.ttf);
src: url(public/fonts/sourcesanspro/SourceSansPro-Regular.ttf);
}

body,
Expand Down
2 changes: 1 addition & 1 deletion src/essence/Ancillary/TimeUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ const TimeUI = {
)
else {
const dateStaged = new Date(L_.configData.time.initialstart)
if (dateStaged === 'Invalid Date') {
if (dateStaged == 'Invalid Date') {
TimeUI._initialStart.setUTCMonth(
TimeUI._initialStart.getUTCMonth() - 1
)
Expand Down
7 changes: 3 additions & 4 deletions src/essence/Basics/Layers_/Layers_.js
Original file line number Diff line number Diff line change
Expand Up @@ -2600,11 +2600,11 @@ const L_ = {
) {
const filteredGeoJSON = JSON.parse(
JSON.stringify(
L_._localTimeFilterCache[layer.name] || layer._sourceGeoJSON
L_._localTimeFilterCache[layerName] || layer._sourceGeoJSON
)
)
if (L_._localTimeFilterCache[layer.name] == null)
L_._localTimeFilterCache[layer.name] = JSON.parse(
if (L_._localTimeFilterCache[layerName] == null)
L_._localTimeFilterCache[layerName] = JSON.parse(
JSON.stringify(filteredGeoJSON)
)

Expand Down Expand Up @@ -2660,7 +2660,6 @@ const L_ = {
}
)
}

// Update layer
L_.clearVectorLayer(layerName)
L_.updateVectorLayer(layerName, filteredGeoJSON)
Expand Down

0 comments on commit 644194f

Please sign in to comment.