In Timeline I'm using the Zoom feature.   It works great, but I was
wondering if there is a way to set the default zoom index?  What I
mean is that I've taken the example code from the documentation.  It
builds up zoom steps that start at the month level and zoom down to
the hour level.  This is great.  What I would like to do is set my
initial/default zoom level to day (the seventh step in my list of zoom
steps), but still be able to zoom up to the month level.

I went ahead and set my "default level" as the last step in my list of
steps:

                    zoomIndex:      11,
                    zoomSteps:      new Array(
                    {pixelsPerInterval: 280,  unit:
Timeline.DateTime.HOUR},
                    {pixelsPerInterval: 140,  unit:
Timeline.DateTime.HOUR},
                    {pixelsPerInterval:  70,  unit:
Timeline.DateTime.HOUR},
                    {pixelsPerInterval:  35,  unit:
Timeline.DateTime.HOUR},
                    {pixelsPerInterval: 400,  unit:
Timeline.DateTime.DAY},
                    {pixelsPerInterval: 200,  unit:
Timeline.DateTime.DAY},
                    {pixelsPerInterval: 100,  unit:
Timeline.DateTime.DAY},
                    {pixelsPerInterval:  50,  unit:
Timeline.DateTime.DAY},
                    {pixelsPerInterval: 400,  unit:
Timeline.DateTime.MONTH},
                    {pixelsPerInterval: 200,  unit:
Timeline.DateTime.MONTH},
                    {pixelsPerInterval: 100,  unit:
Timeline.DateTime.MONTH},
                    {pixelsPerInterval: 100,  unit:
Timeline.DateTime.DAY} // DEFAULT zoomIndex

This works, the default level is DAY, but the first time the user
scrolls to zoom in, they are bumped up to the MONTH view.  So I'm
wondering if I can set the initial level to one of the steps in the
"middle" of my zoom list...

Any thoughts?

thanks,

John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to