source: ether_iasi/trunk/web/resources/js/OpenLayers-2.12/tests/manual/big-georss.html @ 738

Last change on this file since 738 was 738, checked in by vmipsl, 11 years ago

OpenLayers?

File size: 1.2 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml">
2  <head>
3      <title>OpenLayers GML Layer Example</title>
4    <link rel="stylesheet" href="../../theme/default/style.css" type="text/css" />
5    <link rel="stylesheet" href="../../examples/style.css" type="text/css" />
6    <script src="../../lib/OpenLayers.js"></script>
7    <script type="text/javascript">
8        var lon = 5;
9        var lat = 40;
10        var zoom = 5;
11        var map, layer;
12
13        function init(){
14            map = new OpenLayers.Map('map');
15            layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
16                    "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
17            map.addLayer(layer);
18            map.zoomToExtent(new OpenLayers.Bounds(-94.617035,33.010025,-89.645401,36.492752));
19            map.addLayer(new OpenLayers.Layer.Vector("arkansas", {
20                protocol: new OpenLayers.Protocol.HTTP({
21                    url: "arkansas.rss",
22                    format: new OpenLayers.Format.GeoRSS()
23                }),
24                strategies: [new OpenLayers.Strategy.Fixed()]
25            }));
26        }
27    </script>
28  </head>
29  <body onload="init()">
30    <p>Does this map look like arkansas?</p>
31    <div id="map" class="smallmap"></div>
32  </body>
33</html>
Note: See TracBrowser for help on using the repository browser.