Skip to content

Commit

Permalink
Prepare v0.0.5 release (which fixes an important bug in the minified …
Browse files Browse the repository at this point in the history
…version)

Signed-off-by: Marko Locher <[email protected]>
  • Loading branch information
mlocher committed Oct 31, 2013
1 parent 46bebe5 commit 2d8f911
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
v0.0.5:
date: 2013-10-30
changes:
- Fixed a bug while using the minified version
- Fixed a bug in the EO-WCS plugin while returning an empty dataset

v0.0.4:
date: 2013-10-30
changes:
Expand Down
21 changes: 13 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ on how to use it is provided below.
window.addEventListener('load', function() {
// Initialize the TimeSlider
slider = new TimeSlider(document.getElementById('d3_timeslider'), {
debounce: 50,
domain: {
start: new Date("2012-01-01T00:00:00Z"),
end: new Date("2013-01-01T00:00:00Z"),
Expand All @@ -55,11 +56,6 @@ on how to use it is provided below.
[ new Date("2012-01-06T12:00:00Z"), new Date("2012-01-26T16:00:00Z") ],
]);
}
},
{
id: 'fsc',
color: 'green'
data: new TimeSlider.Plugin.EOWCS({ url: 'http://neso.cryoland.enveo.at/cryoland/ows', eoid: 'daily_FSC_PanEuropean_Optical', dataset: 'fsc' })
}
]
});
Expand All @@ -70,11 +66,20 @@ on how to use it is provided below.
console.log(e.detail);
});
// Change the TimeSlider domain
// Change the TimeSlider domain, or the selected interval, then reset the TimeSlider
// to it's initial state
slider.domain(new Date("2011-01-01T00:00:00Z"), new Date("2013-01-01T00:00:00Z"));
// Reset the TimeSlider to it's initial view (e.g. after zooming in, ...)
slider.select(new Date("2011-02-01T00:00:00Z"), new Date("2013-02-08T00:00:00Z"))
slider.reset();
// Add a new dataset and remove another one
slider.addDataset({
id: 'fsc',
color: 'green'
data: new TimeSlider.Plugin.EOWCS({ url: 'http://neso.cryoland.enveo.at/cryoland/ows', eoid: 'daily_FSC_PanEuropean_Optical', dataset: 'fsc' })
});
slider.removeDataset('img2012');
)
}, false);
</script>
```
Expand Down

0 comments on commit 2d8f911

Please sign in to comment.