From: Mitch S. <mit...@be...> - 2009-09-29 12:58:57
|
On 09/23/2009 08:13 PM, David Rosenberg wrote: > From what I can see, there is no 'easy' way to use multiple glyphs > per track in the current implementation (something I am interested in > doing). Is this something you plan to implement? > This is definitely something that we've been talking about and that we plan to do. This is what I've thought about this so far: The main question in my mind is what callbacks we should allow for. The possibilities I've been thinking about are callbacks that take the feature data as an argument and return: * an HTML element (or just the element type, e.g., "div" or "a") * a CSS class * some CSS style text (e.g., "background-color: red") Can anyone think of other things that people might want to customize with a callback? One potential complication is that people could do things in these callbacks that would throw off FeatureTracks's layout code (e.g., by breaking FeatureTrack's current assumption that all features are the same height). Once we implement this, then we should probably reimplement some of the current functionality (like how feature elements are usually "div"s but become "a"s if there's a urlTemplate) in terms of default callbacks. Mitch |