Non Timeline Events & User Friendly Adding of Timeline Events and Non Timeline Events

38 views
Skip to first unread message

Brendan Ferguson

unread,
Jun 11, 2012, 9:10:41 AM6/11/12
to Timemap.js Development
So, Is there a way to place non-timeline events? Pins that show up on
the map, but not in the timeline?

Also what would you consider to be the easiest way to place timeline
events in a dummy proof way? Flicker integration looks amazing, but I
was thinking of calendar events. The Non-timeline Events I was
thinking of using where people. Frappr has shut down. I can't get
mapservices.org to work. Is there a way to integrate google based map
services like this onto the timeline map?

Also, is there a way to hide events that have passed? At least by
default so it requires user action to show them somehow?

Thank you for all your help. I was very excited to see such an amazing
tool as an open source project.

Brendan

David Fisher

unread,
Jun 12, 2012, 6:42:17 AM6/12/12
to timemap-d...@googlegroups.com
You can add markers without adding it to the timeline in a similar approach you would use with Google Maps outside of Mapstraction.
After i have called tm = TimeMap.init i use the following to create markers outside of the timeline:

var newPoint = new mxn.LatLongPoint(xx.xxxx, -x.xxxx); // Creates a long lat for the marker
var mxnMarker = new mxn.Marker(newPoint); // Create new marker setting its long lat
mxnData = new TimeMapTheme({ icon: "<Icon Url>", eventIconImage: "<Icon filename>", <other optional theme items> });
mxnMarker.setLabel("Hello World!");
mxnMarker.addData(mxnData);
tm.map.addMarker(mxnMarker);
markers.push(mxnMarker); // Hold the marker in an array if you need to remove it later

Hope that helps with the first bit of your query. 
Reply all
Reply to author
Forward
0 new messages