Skip to content

Commit

Permalink
Allow timeline to be updated..
Browse files Browse the repository at this point in the history
Allows timeline to be updated when there are no storylayers and you add/remove boxes and annotations #243
  • Loading branch information
Clarence Davis authored May 22, 2017
1 parent bf649e5 commit cf26f57
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/ng/core/time/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@
pinsLayer.on('change:features', function() {
maybeCreateTimeControls(function() {
var range = computeTicks(MapManager.storyMap);
if (range.length) {
if (range.length >= 0) {
return {
storyLayers: MapManager.storyMap.getStoryLayers().getArray(),
annotations: pinsLayer.get("features"),
boxes: boxesLayer.get("features"),
data: range
};
}
Expand All @@ -157,11 +155,10 @@
boxesLayer.on('change:features', function() {
maybeCreateTimeControls(function() {
var range = computeTicks(MapManager.storyMap);
if (range.length) {
if (range.length >= 0) {
return {
annotations: pinsLayer.get("features"),
data: range,
boxes: boxesLayer.get("features")
boxes: boxesLayer.get("features"),
data: range
};
}
});
Expand Down

0 comments on commit cf26f57

Please sign in to comment.