OpenLayers OpenLayers

Changeset 6312

Show
Ignore:
Timestamp:
02/15/08 15:47:47 (1 year ago)
Author:
achipa
Message:

time select control example cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/achipa/openlayers/examples/time-select-control.html

    r6310 r6312  
    2222            map.addControl(new OpenLayers.Control.LayerSwitcher()); 
    2323            map.addControl(new OpenLayers.Control.PanTimeBar()); 
    24             //alert(dumpObj(map.controls, 'controls', '-', 8)); 
    2524        } 
    2625 
     
    6564        function setTime() { 
    6665            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; 
    6966            lineLayer.setDateTime(targetdate); 
    7067        } 
     
    7269  </head> 
    7370  <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> 
    7673    <form onsubmit="return false;"> 
    7774   Load GeoRSS URL: <input type="text" id="url" size="50" /><input type="submit" onclick="addUrl(); return false;" value="Load Feed" onsubmit="addUrl(); return false;" /> 
    7875    </form> <form onsubmit="return false;"> 
    79     <input type="checkbox" id="phighlight"> permanentHighlight <BR> 
    80     <input type="checkbox" id="ipoints"> interpolatePoints <BR> 
    8176    Selected time: <input type="text" id="date" value="1995-12-12T09:20:00Z" > <input type="submit" onSubmit="setTime(); return false;" onClick="setTime(); return false;"> 
    8277    </form> 
    8378    <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> 
    8580    <div id="map"></div> 
    8681  </body>