Re: [timemap-development] Keeping markers visible

126 views
Skip to first unread message

Nick Rabinowitz

unread,
Jun 27, 2011, 3:15:52 PM6/27/11
to sarahs...@gmail.com, Timemap.js Development
Hi Sarah -

This is actually pretty easy. You can set the filter for map markers like this:

TimeMap.init({
  options: {
    mapFilter: 'hideFuture'
  },
  // etc
});

The value for mapFilter can be a key in TimeMap.filters (see http://timemap.googlecode.com/svn/tags/2.0/docs/symbols/TimeMap.filters.html) 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

On Mon, Jun 27, 2011 at 12:03 PM, Sarah Simpkin <sarahs...@gmail.com> wrote:
Hi there,

This is my first post to the group. I've been working with Timemap for
a little while now and am very excited about the possibilities. I
haven't been able to find anything touching on this particular
question and would appreciate any tips!

I'm wondering if there's a way to have my point markers stay visible
even if their associated durations no longer show on the timeline. For
instance, points would still appear as they occur on the timeline, but
wouldn't disappear when they're no longer visible on it.

I'm drawing all of my source data from a Google Spreadsheet with the
usual "start" and "end" columns.

Thanks,

Sarah



--
You received this message because you are subscribed to the Google Groups "Timemap.js Development" group.
To post to this group, send email to timemap-d...@googlegroups.com.
To unsubscribe from this group, send email to timemap-develop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/timemap-development?hl=en.


Sarah Simpkin

unread,
Jun 27, 2011, 3:20:05 PM6/27/11
to Timemap.js Development
Hi Nick,

Thanks for the very quick reply! I'll give it a shot and will reply if
I have any more trouble.

Sarah

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
>
> });
>
> The value for mapFilter can be a key in TimeMap.filters (seehttp://timemap.googlecode.com/svn/tags/2.0/docs/symbols/TimeMap.filte...)
> 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
>

Sarah Simpkin

unread,
Jun 27, 2011, 3:03:49 PM6/27/11
to Timemap.js Development

Ethan Gruber

unread,
Jan 2, 2013, 11:10:04 AM1/2/13
to timemap-d...@googlegroups.com
Hi,

I have a followup to this old thread.  I am attempting to make all map markers permanently visible regardless of the timeline.  I set mapFilter:false in the TimeMap.init options, but I have achieved the opposite.  Now no map markers are visible (even though points do appear on the timeline).  If I click on a timeline object, the bubble appears on the map and points to the location of the placemark.  Attached is a screenshot.  I am using timemap 2.0.1.

Thanks,
Ethan
To unsubscribe from this group, send email to timemap-development+unsub...@googlegroups.com.
Screenshot from 2013-01-02 11:04:07.png

tommAso algozzino

unread,
Nov 30, 2013, 7:07:59 AM11/30/13
to timemap-d...@googlegroups.com
hello
i have same problem, any suggestion?

Beena Raghavendran

unread,
Sep 26, 2014, 10:39:01 AM9/26/14
to timemap-d...@googlegroups.com
Hello, Nick,

We have been working to try to keep all points visible on the map regardless of the point and time on the timeline. We have tried mapFilter:'hideFuture' which helps, because then after we scroll past the points on the timeline, they are visible on the map for the rest of the interactive. But before we reach the points on the timeline, they're still not visible, even when we try mapFilter:'hidePastFuture' or mapFilter:false. What are we doing incorrectly? Is there a new filter we need to write to achieve this?

Thank you,
Beena
Reply all
Reply to author
Forward
0 new messages