Skip to content

Commit

Permalink
Fixed vector time updates not actually refreshing when told to reload (
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts authored Mar 15, 2022
1 parent 4efe578 commit f85b117
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/essence/Basics/Layers_/LayerCapturer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ export const captureVector = (layerObj, options, cb) => {
layerObj.time == null
? d3.utcFormat('%Y-%m-%dT%H:%M:%SZ')
: d3.utcFormat(layerObj.time.format)
const startTime = layerTimeFormat(Date.parse(TimeControl.getStartTime()))
const endTime = layerTimeFormat(Date.parse(TimeControl.getEndTime()))
const startTime =
layerObj.time == null
? layerTimeFormat(Date.parse(TimeControl.getStartTime()))
: layerObj.time.start
const endTime =
layerObj.time == null
? layerTimeFormat(Date.parse(TimeControl.getEndTime()))
: layerObj.time.end

if (typeof layerObj.time != 'undefined') {
layerUrl = layerObj.url
.replace('{starttime}', startTime)
Expand Down
2 changes: 1 addition & 1 deletion src/essence/Basics/Map_/Map_.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ let Map_ = {
}
}
Map_.allLayersLoadedPassed = false
makeLayer(layerObj)
makeLayer(layerObj, true)
allLayersLoaded()
},
setPlayerArrow(lng, lat, rot) {
Expand Down

0 comments on commit f85b117

Please sign in to comment.