[OpenLayers-Commits] r11902 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Apr 21 18:02:49 EDT 2011


Author: tschaub
Date: 2011-04-21 15:02:48 -0700 (Thu, 21 Apr 2011)
New Revision: 11902

Removed:
   trunk/openlayers/examples/getfeatureinfo.html
Log:
This example doesn't work any longer.  And we have others that use the WMSGetFeatureInfo control.

Deleted: trunk/openlayers/examples/getfeatureinfo.html
===================================================================
--- trunk/openlayers/examples/getfeatureinfo.html	2011-04-21 21:59:28 UTC (rev 11901)
+++ trunk/openlayers/examples/getfeatureinfo.html	2011-04-21 22:02:48 UTC (rev 11902)
@@ -1,67 +0,0 @@
-<html>
-  <head>
-    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
-    <meta name="apple-mobile-web-app-capable" content="yes" />
-    <title>OpenLayers Feature Info Example</title>
-    <script src="../lib/OpenLayers.js"></script>
-    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
-    <link rel="stylesheet" href="style.css" type="text/css" />
-    <style type="text/css">
-        ul, li { padding-left: 0px; margin-left: 0px; }
-    </style>
-  </head>
-  <body>
-      <h1 id="title">Feature Info Example</h1>
-
-      <div id="tags">
-        WMS, GetFeatureInfo, cleanup
-      </div>
-
-      <p id="shortdesc">
-        Demonstrates sending a GetFeatureInfo query to an OWS. Returns information about a map feature in the side DIV.
-      </p>
-
-    <a id="permalink" href="">Permalink</a><br />
-
-    <div style="float:right;width:28%">
-        <h1 style="font-size:1.3em;">CIA Factbook</h1>
-        <p style="font-size:.8em;">Click a country to see statistics about the country below.</p>
-        <div id="nodeList">
-        </div>
-    </div>
-      <div id="map" class="smallmap"></div>
-
-  <script defer="defer" type="text/javascript">
-    OpenLayers.ProxyHost = "/dev/examples/proxy.cgi?url=";
-    var map = new OpenLayers.Map('map', {'maxResolution':'auto'});
-
-// cleanup: this WMS is broken
-    var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
-        "http://world.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/world/map/factbook.map", {'layers': 'factbook'} );
-    map.addLayer(wms);
-    map.addControl(new OpenLayers.Control.Permalink('permalink'));
-    map.zoomToMaxExtent();
-    map.events.register('click', map, function (e) {
-            OpenLayers.Util.getElement('nodeList').innerHTML = "Loading... please wait...";
-            var url =  wms.getFullRequestString({
-                            REQUEST: "GetFeatureInfo",
-                            EXCEPTIONS: "application/vnd.ogc.se_xml",
-                            BBOX: wms.map.getExtent().toBBOX(),
-                            X: e.xy.x,
-                            Y: e.xy.y,
-                            INFO_FORMAT: 'text/html',
-                            QUERY_LAYERS: wms.params.LAYERS,
-                            WIDTH: wms.map.size.w,
-                            HEIGHT: wms.map.size.h});
-            OpenLayers.loadURL(url, '', this, setHTML);
-            OpenLayers.Event.stop(e);
-      });
-    function setHTML(response) {
-        OpenLayers.Util.getElement('nodeList').innerHTML = response.responseText;
-    }
-  </script>
-
-    <div id="docs">
-    </div>
-  </body>
-</html>



More information about the Commits mailing list