On Jun 27, 3:15 pm, Nick Rabinowitz <
n...@nickrabinowitz.com> wrote:
> Hi Sarah -
>
> This is actually pretty easy. You can set the filter for map markers like
> this:
>
> TimeMap.init({
> options: {
> mapFilter: 'hideFuture'
> },
> // etc
>
> });
>
> or false. I'm not sure from your message whether you want all map markers to
> be permanently visible (mapFilter:false) or for them to be visible once they
> scroll into view on the timeline, and then not hidden afterwards. If you're
> sure you'll be scrolling past-to-future, then mapFilter: 'hideFuture' would
> work for the latter case. If you need the markers to start hidden, but stick
> once they're shown, no matter the timeline position, you'll probably need to
> write your own filter function.
>
> If you need to make your own filter, you can create a new filter function
> (takes a TimeMapItem as an argument, and returns true or false to indicate
> whether the marker should be visible), make it a property of TimeMap.filters
> (e.g. TimeMap.filters.myFilter = myFilter), and then refer to it by string
> name in TimeMap.init(). See the Filter Tutorial for more info:
http://code.google.com/p/timemap/wiki/FilterTutorial
>
> Hope that helps!
>
> -Nick
>