OpenLayers OpenLayers

root/branches/openlayers/2.5/examples/doubleSetCenter.html

Revision 1424, 494 bytes (checked in by crschmidt, 2 years ago)

Fix all cases where we have Windows line endings, and set eol-style="native"
on all files. Hopefully, this makes it easier for people to write patches
and do other neat things.

  • Property svn:eol-style set to native
Line 
1 <html>
2 <head>
3 <script src="../lib/OpenLayers.js"></script>
4 </head>
5 <body>
6   <div style="width:100%; height:100%" id="map"></div>
7   <script defer="defer" type="text/javascript">
8     var map = new OpenLayers.Map('map');
9     var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
10         "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
11     map.addLayer(wms);
12     map.setCenter(new OpenLayers.LonLat(100,10));
13     map.setCenter(new OpenLayers.LonLat(1,1));
14   </script>
15 </body>
16 </html>
17
Note: See TracBrowser for help on using the browser.