From 2d8f91127d9bb62fa2abb80413cf352bf391358c Mon Sep 17 00:00:00 2001 From: Marko Locher Date: Thu, 31 Oct 2013 14:16:48 +0100 Subject: [PATCH] Prepare v0.0.5 release (which fixes an important bug in the minified version) Signed-off-by: Marko Locher --- Changelog | 6 ++++++ Readme.md | 21 +++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/Changelog b/Changelog index 39e1dd5..25f021b 100644 --- a/Changelog +++ b/Changelog @@ -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: diff --git a/Readme.md b/Readme.md index b377b27..bad6f43 100644 --- a/Readme.md +++ b/Readme.md @@ -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"), @@ -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' }) } ] }); @@ -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); ```