Hi Everyone,
I have been playing with the newest addition to the plugin - the
ability to show/hide the time slider UI.
I am having problems making the UI hidden completely. I have no
problems hiding the UI once it is shown, but I would prefer to not
show it in the first place.
I have setup a page where I have a demo of what I am referring to, but
ask you to read ALL this post before visiting the page.
1. When you initially load the page, you will see 2 buttons under the
GE window - one that says ' load springboard tour with UI' and one
that says 'load springboard tour and hide UI'
If you click the one WITH the UI, it loads the tour and timeline - no
worries. However, you need to click it again to make the tour play. If
you now close the tour (all using the tour controls in the GE window),
and now click the same 'load with UI' button - it should load the tour
AND start playing - and will continue to behave this way until you
refresh the page.
My code includes a ge.getTourPlayer().play(); and I want to auto-play
the tour, but can't work out why it doesn't on the first page load.
2. If you refresh the page, and now click the button with 'HIDE UI' -
it should load the tour without displaying the UI - however it has the
same deal as the other button, in that you need to click it twice to
play the tour - then it will work everytime.
Now the fun stuff - try refreshing the page once again, and try the
tour WITH the UI - I am finding it no longer shows the UI - even
though it should be - still has same deal with having to click twice
for it to play. It is as if the 'disable UI' is still activated upon a
page refresh.
Also, if you play with the 'enable' and 'disable' buttons - leave the
UI enabled - then refresh the page - I am finding a lot of the time
the UI is now showing on initial page load - even though there is no
kml loaded (let alone one with timestamps)
I have tried using the 'disable Ui' function in the init() and
initCB(object) functions, but it doesn't seem to do anything. It seems
that you can't disable the UI, until AFTER it has already been shown.
Lastly, and this doesn't seem to happen until you have been playing
with it for a while - but eventually I get to a stage where I have a
'bug' image of the UI showing - you can see the image in this
screenshot
http://whistlervisitorguide.com/trailmap/timesliderbug.jpg
that 'bug' image stays there even during a refresh - and can still be
there the next day when I first load the page. you need to 'enable'
the UI and then 'disable' it to make it go away.
here is the page with my demo
http://whistlervisitorguide.com/trailmap/
I admit it is hard to duplicate the 'bug' image - I have been trying
to find a way to make it happen before posting, but no luck.
I do have another page, which seems to get the image 'bug' a lot more
(still can't find a way to make it happen) - but it also contains
everything else I am working on - and I would rather not make it
public (yet).
However, if Josh or another Google rep wants to see it, please email
me (or tell me to email you) and I will share the URL.
So to recap-
1. I would like to find a way to make the track/tour load AND play
upon the initial loading of the page, with just 1 click.
2. I would to find a way which ensures the timeline UI is never shown.
Maybe I am missing something very simple??
Any help is appreciated.
Thanks
Greg