Add feeback form/layar API
[bus.git] / openlayers / examples / wfs-states.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
    <link rel="stylesheet" href="style.css" type="text/css" />
    <title>WFS: United States (GeoServer)</title>
    <script src="../lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var map, layer;
 
        function init(){
            OpenLayers.ProxyHost="proxy.cgi?url=";
            map = new OpenLayers.Map('map', {controls: [ new OpenLayers.Control.PanZoom(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.MouseDefaults() ]} );
            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
                    "http://labs.metacarta.com/wms-c/Basic.py",
                    {layers: 'basic'} );
            map.addLayer(layer);
 
            layer = new OpenLayers.Layer.WFS( "States WFS",
                    "http://sigma.openplans.org/geoserver/ows",
                    { typename: 'topp:states' } );
            map.addLayer(layer);
 
            map.zoomToExtent(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078));
        }
    </script>
  </head>
  <body onload="init()">
<h1 id="title">WFS United States (GeoServer) Example</h1>
 
<div id="tags">
</div>
 
<p id="shortdesc">
    Shows the use of the WFS United States (GeoServer) 
</p>
 
<div id="map" class="smallmap"></div>
 
<div id="docs"></div>
  </body>
</html>
 
 
 
</div>