Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeline and Map events are connected #36

Closed
rufuspollock opened this issue Apr 3, 2013 · 5 comments · Fixed by #41
Closed

Timeline and Map events are connected #36

rufuspollock opened this issue Apr 3, 2013 · 5 comments · Fixed by #41

Comments

@rufuspollock
Copy link
Member

Clicking on map highlights item in timeline and vice-versa.

Implementation

@om-design
Copy link

Could you use a hyperlink to send a POST event ?

@om-design
Copy link

wacky workaround.. use smaller icon images for the map, give every point an icon with a unique name, then, in-cache or on server, switch the image and/or scale the size for that point when selected in the timeline.

@djw
Copy link
Contributor

djw commented Apr 12, 2013

As far as I can see, the only way that TimelineJS allows you to navigate between markers is via onhashchange. The goToMarker method exists, but is not exposed, even in the latest version of Timeline.

But that might work quite well... The URL would represent the currently selected marker, and we could make the map listen to onhashchange, and update the URL when a marker is clicked. That'd give us the two-way communication.

The only downside I can see is that shared URLs take with them the user's current selection.

What do you think, @rgrp ?

@djw
Copy link
Contributor

djw commented Apr 12, 2013

#37 is relevant here

@rufuspollock
Copy link
Member Author

@djw I think this is great and would also solve #37. Please dive in and start coding it up ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants