Skip to content
This repository
Newer
Older
100644 64 lines (54 sloc) 3.011 kb
15be7ff3 »
2011-05-31 use HTML5 in all examples, and some minor example improvements (pullu…
1 <!DOCTYPE html>
2 <html>
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
3 <head>
15be7ff3 »
2011-05-31 use HTML5 in all examples, and some minor example improvements (pullu…
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
e8960054 »
2011-06-14 Correct the contents of the <meta name="viewport"> attribute content.…
5 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
15be7ff3 »
2011-05-31 use HTML5 in all examples, and some minor example improvements (pullu…
6 <meta name="apple-mobile-web-app-capable" content="yes">
de272ebf »
2008-11-03 Adding titles to title-less examples for googlebot.
7 <title>OpenLayers: WMS + Time</title>
15be7ff3 »
2011-05-31 use HTML5 in all examples, and some minor example improvements (pullu…
8 <link rel="stylesheet" href="../theme/default/style.css" type="text/css">
9 <link rel="stylesheet" href="style.css" type="text/css">
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
10 <script src="../lib/OpenLayers.js"></script>
11 <script type="text/javascript">
9d1baf68 »
2007-09-11 exposing the map for firebuggers - and removing some crufty html comm…
12 var map, ia_wms;
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
13 function init(){
14 map = new OpenLayers.Map('map');
15
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
16 var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
fb35f555 »
2010-09-01 Change all references to the labs.metacarta.com WMS server to the
17 "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'} );
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
18
19 var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
20 "http://t1.hypercube.telascience.org/cgi-bin/landsat7",
2834d668 »
2007-11-06 Change examples from using OnEarth WMS because it no longer support 5…
21 {layers: "landsat7"});
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
22
cad18392 »
2009-06-12 Updated server url. Thanks akrherz for making us aware of the new url…
23 ia_wms = new OpenLayers.Layer.WMS("Nexrad","http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?",{layers:"nexrad-n0r-wmst",transparent:true,format:'image/png',time:"2005-08-29T13:00:00Z"});
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
24
25 jpl_wms.setVisibility(false);
26
27 map.addLayers([ol_wms, jpl_wms, ia_wms]);
28 map.addControl(new OpenLayers.Control.LayerSwitcher());
785adf30 »
2007-09-15 Seperate out date fields and add more descriptive text.
29 map.zoomToExtent(new OpenLayers.Bounds(-100.898437,22.148438,-78.398437,39.726563));
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
30 }
785adf30 »
2007-09-15 Seperate out date fields and add more descriptive text.
31 function update_date() {
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
32 var string = OpenLayers.Util.getElement('year').value + "-" +
33 OpenLayers.Util.getElement('month').value + "-" +
34 OpenLayers.Util.getElement('day').value + "T" +
35 OpenLayers.Util.getElement('hour').value + ":" +
785adf30 »
2007-09-15 Seperate out date fields and add more descriptive text.
36 OpenLayers.Util.getElement('minute').value + ":00";
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
37 ia_wms.mergeNewParams({'time':string});
38
39 }
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
40 </script>
41 </head>
42 <body onload="init()">
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
43 <h1 id="title"> WMS Time Example</h1>
a54f3665 »
2008-03-12 four tabs for spaces
44 <div id="tags">
35092e92 »
2010-09-13 Added keywords and tags to examples. People who want to help clean up…
45 wmst, wms-t
a54f3665 »
2008-03-12 four tabs for spaces
46 </div>
47 <p id="shortdesc">
48 Shows the use of the layer WMS-T (time) layer</a>
49 </p>
785adf30 »
2007-09-15 Seperate out date fields and add more descriptive text.
50 <input size="4" type='text' id='year' value="2005" onchange="update_date()"/>-<input size="2" type="text" id="month" value="08" onchange="update_date()"/>-<input size="2" type="text" id="day" value="29" onchange="update_date()" />T<input type="text" size="2" id="hour" value="13" onchange="update_date()" />:<input type="text" size="2" id="minute" value="00" onchange="update_date()" />:00
c350fd68 »
2008-05-08 giving examples some style
51 <div id="map" class="smallmap"></div>
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
52 <div id="docs">
15be7ff3 »
2011-05-31 use HTML5 in all examples, and some minor example improvements (pullu…
53 <p>WMS-T example: update the times, and the radar image will change.
54 Uses Layer.mergeNewParams to update the date element with the strings
55 from the input fields every time one of them is changed. The inputs
56 above describe a timestamp: The minute increments can only be updated
57 in units of 5.</p>
a54f3665 »
2008-03-12 four tabs for spaces
58 </div>
2117aa05 »
2006-06-30 Commit a 'changeParams' method, along with test and example, to show …
59 </body>
60 </html>
61
7da6a354 »
2007-12-08 Merge the excellent documentation work done during foss4g into trunk.…
62
63
Something went wrong with that request. Please try again.