| 6 | |
| 7 | '''Compiling''' |
| 8 | |
| 9 | e4D Source Code is in the institite HG https://it-dev.mpiwg-berlin.mpg.de/hg/STI-GWT |
| 10 | |
| 11 | Be sure to check out the most recent branch (at the time of this writing: trimmed_data). |
| 12 | As the code was branched off from DARIAH SVN I tried to keep the "default" tied to the original development. This way diffs can be applied more easy. |
| 13 | |
| 14 | After checking out you can compile it via "ant war", the resulting file "e4d.war" can be deployed in an servlet container (eg. Tomcat or Jetty). |
| 15 | |
| 16 | '''Using e4D in own websites''' |
| 17 | |
| 18 | * Include the JS Libraries in the page |
| 19 | |
| 20 | <script type="text/javascript" language="javascript" src="sti/sti.nocache.js"></script> |
| 21 | <script src="scripts/blockUI/FullscreenWindow.js"></script> |
| 22 | <script src="scripts/Timeplot/timeplot-complete.js"></script> |
| 23 | <link type="text/css" rel="stylesheet" href="Sti.css"> |
| 24 | <link type="text/css" rel="stylesheet" href="scripts/OpenLayers/theme/default/style.css"> |
| 25 | |
| 26 | <script src="scripts/sti/timeplot-modify.js"></script> |
| 27 | <script src="scripts/sti/properties.js"></script> |
| 28 | <script src="scripts/sti/STIProps.js"></script> |
| 29 | <script src="scripts/sliderCombined.js"></script> |
| 30 | |
| 31 | <!--[if IE]><script type="text/javascript" src="scripts/libs/lib/excanvas.js"></script><![endif]--> |
| 32 | |
| 33 | <script src="scripts/sti/STIMap.js"></script> |
| 34 | <script src="scripts/sti/STITimeplot.js"></script> |
| 35 | <script src="scripts/sti/STITutorial.js"></script> |
| 36 | <script src="scripts/sti/STICore.js"></script> |
| 37 | <script src="scripts/sti/DataObject.js"></script> |
| 38 | <script src="scripts/sti/DataSet.js"></script> |
| 39 | <script src="scripts/sti/ExtendedDataSource.js"></script> |
| 40 | <script src="scripts/sti/ExtendedSimileTimeDate.js"></script> |
| 41 | <script src="scripts/sti/PointObject.js"></script> |
| 42 | <script src="scripts/sti/clustering.js"></script> |
| 43 | <script src="scripts/sti/kruskal.js"></script> |
| 44 | <script src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script> |
| 45 | <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> |
| 46 | <script src="scripts/OpenLayers/OpenLayers.js"></script> |
| 47 | <script src="scripts/ucsv/ucsv-1.1.0-min.js"></script> |
| 48 | |
| 49 | * Add the map and table component to the site |
| 50 | |
| 51 | <div id="mainContainer"></div> |
| 52 | <div id="tableWindow" class="tableWindow"></div> |
| 53 | |
| 54 | * load a KML file |
| 55 | |
| 56 | either call the site with a parameter kml1-kml4 that holds a link to a KML file |
| 57 | |
| 58 | or call the function loadKml(kmlcontent,kmltitle) |
| 59 | |
| 60 | * remove a dataset |
| 61 | |
| 62 | call the function deleteDataSet(index) |