Peter Hedlund wrote:
> Here's the issue that I'm running into:
>
> The coordinator works great between the timeline and map when there is
> one item at a map location. However, if there are multiple items at
> the exact same location on the map the initial bubble that pops up
> when you click that location marker displays links to those items.
> The problem I'm having is that when you click those links to access
> the detailed bubble that corresponds to each item, the timeline
> doesn't synchronize like it does ordinarily.
>
> Does anyone have any suggestions?
>
This is a bug... or rather, a not-yet-implemented. Take a look in
http://api.simile-widgets.org/exhibit/2.2.0/extensions/map/scripts/map-view.js
Search for
self._selectListener.fire({ itemIDs: locationData.items });
That's how the map tells the coordinator to tell other views of the new
selection, but only when a map marker is clicked, not when a link inside
a map bubble is clicked. The map bubble is rendered in this function
Exhibit.MapView.prototype._createInfoWindow = function(items) {
which calls out to a function in
http://api.simile-widgets.org/exhibit/2.2.0/scripts/util/views.js
You would need to override the fillBubbleWithItems function so that when
there are more than 1 item, it can expect a callback function (which the
map view will give) to call when an item's link is clicked.
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---