Hi Everyone,

Given the downtime recently, i've put together a blog-post on self-hosting
the Exhibit API:

http://www.jonbogacki.com/2010/09/host-your-own-exhibit-api-in-three-easy-steps/

I have provided a zip with a full copy of the Simile API files at
api.simile-widgets.org, with one small modification: all hard-coded
references to the MIT server have been replaced (in part) with a variable
named *apiPath*.

Once these API files have been uploaded to your web-server, you can set the
correct apiPath using the javascript below in your Exhibit HTML. Exhibit &
its extension items can then be loaded as required by removing the preceding
//’s.

Also included in the zip is a copy of the latest Exhibit trunk as at 4th Sep
2010 (which has some neat things not in version 2.2.0, such as Open Layers
map view and Pagination), and Dan Langes simplemap-view.js (which removes
dependencies on the MIT painter service for Map view).

I hope you find it useful!

Regards,
Jon



<script type="text/javascript">
// Set the absolute path to your simile-api directory
var apiPath = 'http://www.*yourwebsite*.com/simile-api';

// Load Exhibit & Extention items as required
load( apiPath + '/exhibit/latest/exhibit-api.js' );
// load( apiPath + '/exhibit/latest/extensions/time/time-extension.js' );
// load( apiPath +
'/exhibit/latest/extensions/timeplot/timeplot-extension.js' );
// load( apiPath +
'/exhibit/latest/extensions/map/map-extension.js?gmapkey=' );
// load( apiPath +
'/exhibit/latest/extensions/map/map-extension.js?service=openlayers' );
// load( apiPath + '/exhibit/latest/extensions/chart/chart-extension.js' );
// load( apiPath +
'/exhibit/latest/extensions/calendar/calendar-extension.js' );

// load( apiPath + '/timeline/2.3.1/timeline-api.js' );
// load( apiPath + '/timeplot/1.1/timeplot-api.js' );
// load( apiPath + '/timegrid/timegrid-api.js' );
// load( apiPath + '/runway/1.0/runway-api.js' );


  function load( url ) {
   var script = '<script type="text/javascript" src="'+ url
+'"></scr'+'ipt>\n';
   document.write( script );
 }
 </script>

-- 
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.

Reply via email to