1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>OpenLayers WMSDescribeLayer Parser Example</title>
4 <link rel="stylesheet" href="style.css" type="text/css" />
5 <script src="../lib/OpenLayers.js"></script>
6 <script type="text/javascript">
7 function parseData(req) {
8 format = new OpenLayers.Format.WMSDescribeLayer();
10 resp = format.read(req.responseText);
11 for(var i = 0; i < resp.length; i++) {
12 html += "Layer: typeName: "+ resp[i].typeName+",";
14 html += "<li>owsURL: "+resp[i].owsURL+"</li>";
15 html += "<li>owsType: "+resp[i].owsType+"</li>";
18 document.getElementById('output').innerHTML = html;
21 OpenLayers.loadURL("xml/wmsdescribelayer.xml", "", null, parseData);
25 <body onload="load()">
26 <h1 id="title">WMSDescribeLayer Parser Example</h1>
31 Demonstrate the operation of the WMSDescribeLayer parser.
34 <div id="output"></div>
37 This script reads data from a file and parses out the coordinates, appending them to a HTML string with markup tags.
38 This markup is dumped to an element in the page.