3 <title>OpenLayers Double Set Center Example</title>
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" />
10 <h1 id="title">Double Set Center Example</h1>
15 Demonstrate the behavior of two calls to set the center after instatiating the layer object.
18 <div id="map" class="smallmap"></div>
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'} );
25 map.setCenter(new OpenLayers.LonLat(100,10));
26 map.setCenter(new OpenLayers.LonLat(1,1));