David Karger wrote:
> I don't know how to control the bubble but here are two answers.
>
> Warf wrote:
>   
>> I have been playing with Exhibit (which is awesome BTW), and am
>> curious about doing a couple different things in the bubble.
>>
>> http://www3.telus.net/warfsworld/html/travel/travel_map.html
>>
>> 1) I have some pages which have the element "homepage" : in the
>> travel_map.js file, and some that don't. I currently have them
>> displaying "Travel Diary" and linking to that url... but want that
>> element not to display if it doesn't exist in the .js file.
>>   
>>     
> exhibit has an ex:if-exists attribute that addresses this.  Eg. <span
> ex:if-exists=".homepage"><a
> ex:href-content=".homepage">homepage</a></span> is a span that will only
> appear (with its insides) if the homepage attributes exists on the item
> being rendered.
>   
>> 2) Currently setting a specific bubble size using a div class and
>> style, but would prefer to have it resize based on content, however
>> when I let it do that it will show only half the bubble with the image
>> and data running out of the bubble.
>>     
This is a problem due to the image not loading fast enough in order for 
the bubble to calculate its size. If all your images are of roughly the 
same size, then perhaps you can wrap them with a div

    <div class="thumbnail-container"><img ... /></div>

and define this CSS rule to fix the size of the div

    .thumbnail-container { width: 200px; height: 300px; }

>> 3) Can the pop-up bubbles appear in different directions instead of
>> always above, since it will reposition the map with a large grey area
>> when selecting locations in the northern regions.
>>     
This is Google Maps' doing. Exhibit doesn't control it.

>> 4) Where do you control the menu like pop-up that appears when there
>> is multiple items at the same location?
>>     
It's in
    http://static.simile.mit.edu/exhibit/api-2.1.0/scripts/util/views.js
Look for
    Exhibit.ViewUtilities.fillBubbleWithItems

>> 5) Non-Bubble question: How do you not display the little scissor icon
>> that has RDF/XML...Exhibit JSON?
>>   
>>     
> It can be done, but I recommend against it---it offers a way to let
> people copy your data, which might be very useful for someone else
> trying to present some useful information or make a mashup.  Removing
> the scissors doesn't make that impossible, but it does make it less
> convenient.  The scissors themselves are small and unobtrusive; I don't
> think they will bother anyone with their presence.  If, after this
> commentary, you stil want to remove the scissors, you can try to add
> ex:showToolbox="false" to the view div. If that doesn't work, try adding
> this CSS rule  div.exhibit-toolboxWidget-popup { display: none; }after
> you include exhibit-api.js.
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to