]> dev.renevier.net Git - syp.git/blob - openlayers/examples/doubleSetCenter.html
removes unused openlayers files in build result
[syp.git] / openlayers / examples / doubleSetCenter.html
1 <html>
2     <head>
3         <title>OpenLayers Double Set Center Example</title>
4        
5         <script src="../lib/OpenLayers.js"></script>
6         <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
7         <link rel="stylesheet" href="style.css" type="text/css" />
8     </head>
9     <body>
10         <h1 id="title">Double Set Center Example</h1>
11
12         <div id="tags"></div>
13
14         <p id="shortdesc">
15             Demonstrate the behavior of two calls to set the center after instatiating the layer object.
16         </p>
17
18         <div id="map" class="smallmap"></div>
19     
20         <script defer="defer" type="text/javascript">
21             var map = new OpenLayers.Map('map');
22             var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
23                 "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
24             map.addLayer(wms);
25             map.setCenter(new OpenLayers.LonLat(100,10));
26             map.setCenter(new OpenLayers.LonLat(1,1));
27         </script>
28
29         <div id="docs"></div>
30     </body>
31 </html>
32