Does anyone have the timeline widget working locally? I’ve been looking into this for ages (over a year off and on) and never managed to get it working! If they do, could someone zip and send me the whole thing, so I’ve got a secure working base to start from?
Many thanks
Oli
--
Oli Howson, BSc (Hons) MBCS
0777 929 8368
Genghis' Folly 2008 Mongolian Rally Team
<html>
<head>
<title>Title</title>
<link href="js/data.js" type="application/json" rel="exhibit/data" />
<script src="js/gmap.js" type="text/javascript"></script>
<script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"
type="text/javascript"></script>
<script src="http://static.simile.mit.edu/exhibit/extensions-2.0/time/time-extension.js" type="text/javascript"></script>
<script src="http://static.simile.mit.edu/exhibit/extensions-2.0/map/map-extension.js?gmapkey=MyGMAPKEY"></script>
<script language="javascript" src="source-to/gmap-wms.js"> </script>
<script type="text/javascript">
var oldReconstruct = Exhibit.MapView.prototype._reconstruct;
// Overwriting reconstruct to show WMS maps
Exhibit.MapView.prototype._reconstruct = function() {
oldReconstruct.call(this);
//if(this._map.getMapTypes().length<5){
if(this._map.getMapTypes().length<4){
//var WMS_URL_ROUTE='http://wms.mapa.es/wms/wms.aspx?&reaspect=false&EXCEPTIONS=application/vnd.ogc.se_xml&';
var WMS_URL_ROUTE0='http://www.idee.es/wms/PNOA/PNOA?application/vnd.ogc.se_inimage&';
var G_MAP_WMS_SPEC0 = createWMSSpec(WMS_URL_ROUTE0, "PNOA", "PNOA", "pnoa", "", "image/jpeg", "1.1.1","0xFFFFFF","EPSG:4326");
//var G_MAP_WMS_SPEC = createWMSSpec(WMS_URL_ROUTE, "SIGPAC", "SIGPAC", "ORTOFOTOS", "", "image/jpeg", "1.1.1","0xFFFFFF","EPSG:4326");
var geoXml_fincas = new GGeoXml("URL_PATH_TO_MY_KML");
//this._map.addMapType(G_MAP_WMS_SPEC);
this._map.addMapType(G_MAP_WMS_SPEC0);
this._map.addOverlay(geoXml_fincas);
this._map.enableScrollWheelZoom();
}
};
</script>
<style>
body {
font-family: "arial","georgia", "times", "times new roman", serif;
font-size: 50%;
}
div.name {
font-size: 100%;
}
.status {
font-color: red;
}
</style>
</head>
<body>
<table width="100%">
<tr valign="top">
<td width="15%">
<h1>Riegos</h1>
<b>Buscar:</b>
<div ex:role="facet" ex:facetClass="TextSearch"></div>
<hr/>
<div ex:role="facet" ex:expression=".Parcela" ex:facetLabel="Parcela"></div>
</td>
<!--td ex:role="viewPanel"-->
<td>
<table ex:role="lens" class="riego">
<tr>
<td>
<div>
Parcela: <span ex:content=".Parcela" class="label"></span><br/>
Consumo(m3): <span ex:content=".label" class="label"></span><br/>
Aportación(mm): <span ex:content=".Aportacion" class="label"></span><br/>
Inicio: <span ex:content=".FInicio" class="year"></span><br/>
Fin: <span ex:content=".FFin" class="year"></span><br>
</div>
</td>
</tr>
</table>
<div ex:role="coordinator" id="riego"></div>
<div ex:role="view"
ex:viewClass="Timeline"
ex:start=".FInicio"
ex:end=".FFin"
ex:timelineHeight="200"
ex:colorKey=".Parcela"
ex:bottomBandUnit="week"
ex:selectCoordinator="riego">
</div>
<div id="map" ex:role="view"
ex:viewClass="Map"
ex:latlng=".latlng"
ex:colorKey=".Parcela"
ex:zoom="15"
ex:center="42.0980,-7.712412"
ex:mapHeight= "700"
ex:showSummary="false"
ex:showHeader="false"
ex:showFooter="false"
ex:selectCoordinator="riego">
</div>
<div>
</div>
</td>
</tr>
</table>
</body>
</html>
>sounds to me like you just want the code the dine & dash way.
Well yes. I thought that was the point in widgets? More importantly, I
suffer from a severe case of lazyitiss
:)
Oli
Hmm, How do you get that info up in firebug? I've just installed it, and I'm
not seeing that window you posted me. Is there some config or something?
Larry: That copy script is no good if you're working on windows!