Changeset 6312
- Timestamp:
- 02/15/08 15:47:47 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/achipa/openlayers/examples/time-select-control.html
r6310 r6312 22 22 map.addControl(new OpenLayers.Control.LayerSwitcher()); 23 23 map.addControl(new OpenLayers.Control.PanTimeBar()); 24 //alert(dumpObj(map.controls, 'controls', '-', 8));25 24 } 26 25 … … 65 64 function setTime() { 66 65 var targetdate = OpenLayers.DateTime.fromRFC3339(OpenLayers.Util.getElement('date').value); 67 lineLayer.permanentHighlight = OpenLayers.Util.getElement('phighlight').checked;68 lineLayer.interpolatePoints = OpenLayers.Util.getElement('ipoints').checked;69 66 lineLayer.setDateTime(targetdate); 70 67 } … … 72 69 </head> 73 70 <body onload="init()"> 74 <h1> GeoRSS TimedPointTrack in OpenLayers</h1>75 <p style="font-size:.9em;">This demo uses OpenLayers. Layer.GeoRSS and OpenLayers.Layer.TimedPointTrack. The track is created by connecting the points of the GeoRSS feed.</a></p>71 <h1>Select time in time-aware layers</h1> 72 <p style="font-size:.9em;">This demo uses OpenLayers.Control.PanTimeBar with OpenLayers.Layer.GeoRSS and OpenLayers.Layer.TimedPointTrack. The track is created by connecting the points of the GeoRSS feed, and the points can be tracked based on their temporal attribute.</a></p> 76 73 <form onsubmit="return false;"> 77 74 Load GeoRSS URL: <input type="text" id="url" size="50" /><input type="submit" onclick="addUrl(); return false;" value="Load Feed" onsubmit="addUrl(); return false;" /> 78 75 </form> <form onsubmit="return false;"> 79 <input type="checkbox" id="phighlight"> permanentHighlight <BR>80 <input type="checkbox" id="ipoints"> interpolatePoints <BR>81 76 Selected time: <input type="text" id="date" value="1995-12-12T09:20:00Z" > <input type="submit" onSubmit="setTime(); return false;" onClick="setTime(); return false;"> 82 77 </form> 83 78 <p>The above input box allows the input of a URL to a GeoRSS feed. This feed can be local to the HTML page -- for example, entering 'xml/track1.xml' will work by default.</p> 84 <p>The example shows a track, displayed as a line connecting the points of the feed. It also shows markers at positions that have a title tag in the rss item. If clicked, a popup will show title and description.</p>79 <p>The example shows a track, displayed as a line connecting the points of the feed. The time-select control in the lower right can be used to select a certain time for the displayed layers, either roughly by dragging the bar, or step by step pressing the + and - icons.</p> 85 80 <div id="map"></div> 86 81 </body>
