<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><blockquote><blockquote><div style="text-align: left;">Hello,<br><br>I'm trying to get the SIMILE Timeline tool to synchronize events between the timeline bars and an OpenLayers GIS web-map interface. Has anyone done similar work? I cross-posted this to the MIT SIMILE general mailing list.<br><br>My initial plans to solve this problem include getting data from the Geoserver web-map server (supplying GIS data to OpenLayers) in GeoJSON format. It seems that Timeline expects a particular format for JSON (or XML) input files however, so I think I need to parse my GeoJSON attribute data and create a Timeline formatted JSON (or XML) file on the fly. Ideally, Timeline would let you tie certain attribute properties from the GeoJSON file to the needed Timeline properties (start, end, etc.) but I think I'll be able to reformat my data in javascript for the Timeline tool.<br><br>My question is how to synchronize the event source loaded into Timeline with the map frame presented by OpenLayers. Is there a way to extract the events shown in the highlighted slider bar to JSON or XML format on the fly? Should I wait for a mouse-up event to extract the events shown? Once I have a JSON file of events (with their latitude and longitude attributes) I think I can load the JSON into OpenLayers as a Vector Layer and refresh the map. I may need to reformat the Timeline output back to GeoJSON format for import to OpenLayers however.<br><br>Does it sound like I'm on the right track, or am I making this way too complicated? What methods do I need to call to extract the events shown in the highlighted slider bar and what format would that extract be in? Are there JSON javascript libraries I should consider using for the format conversions back and forth between Timeline JSON format and GeoJSON format?<br><br>Thanks so much for your consideration of this problem.<br>Andrew Murdoch<br></div></blockquote><a href="http://www.xbox.com/en-US/hardware/wheretobuy/" target="_blank"><br></a>
</blockquote><br /><hr />Get the power of Windows + Web with the new Windows Live. <a href='http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007' target='_new'>Get it now!</a></body>
</html>