I'm still really struggling with this. I'd be so greatful if anyone can
offer any help.
I've bypassed the issue of focussing the timeline at today's date and
instead have set it to use the last event instead, which is passable for
the client. I've also set the 'start_zoom_adjust' value to 6 which does
zoom somewhat. However, on the timeline itself the zoom in (plus) button
won't zoom any further, and actually I'd like the zoom to default to around
8 or 9 rather than 6, but when I set this it doesn't do anything.
$(document).ready(function() {
createStoryJS({
type: 'timeline',
width: '970',
height: '600',
start_at_slide: '35',
start_zoom_adjust: '6',
source: '/about/timeline-page/TimelineItems',
embed_id: 'my-timeline',
debug: true,
css: '/timelinejs/compiled/css/timeline.css',
js: '/timelinejs/compiled/js/timeline.js'
});
});
Again, I'm really struggling to find documentation (Googling 'simile
timeline start_zoom_adjust' yields just 3 results, none of which are
useful) but I'm coming under a lot of pressure from the client now to get
this finished. If anyone could please help me to understand how to zoom
further than 6 by default, it would be much appreciated.
Many thanks
On Tuesday, January 29, 2013 10:07:25 AM UTC, Dan wrote:
>
> Hi,
>
> I'm sure I posted this yesterday but it hasn't appeared on the group page.
>
> I'm hoping it's a very straight forward question, but I just can not find
> the answer in the documentation. I have a very basic timeline, initiated
> using the code below:
>
> <script>
> $(document).ready(function() {
> createStoryJS({
> type: 'timeline',
> width: '970',
> height: '600',
> start_at_slide: '1',
> source: '/about/timeline-page/TimelineItems',
> embed_id: 'my-timeline',
> debug: true,
> css: '/timelinejs/compiled/css/timeline.css',
> js: '/timelinejs/compiled/js/timeline.js'
> });
> });
> </script>
>
> All I want to do is centre the timeline on the current day when it loads,
> as opposed to the first slide (tried removing 'start_at_slide' but it
> doesn't seem to change anything). I'd also like to scale the timeline such
> that it only shows 1 year before the current date to 1 year after the
> current date in the view by default.
>
> Can anyone suggest how to do this or point me in the direction of these
> settings in the documentation? I've looked at some examples but just can't
> find anything I can understand to do this.
>
> I've tried zoomIndex: 14 and date: "Jan 29 2013 10:01:43 GMT" but neither
> of these work.
>
> Thanks folks!
>
--
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.