I'd also like to point out that the following example is not working for me
either..

<html>
  <head>
    <link rel="stylesheet"
href="http://openlayers.org/api/theme/default/style.css"; type="text/css" />
    <link rel="stylesheet"
href="http://openlayers.org/dev/examples/style.css"; type="text/css" />
    <script src="http://openlayers.org/api/OpenLayers.js";></script>
        <script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false";></script>
    <script type="text/javascript">
    
var map;

function init() {
    map = new OpenLayers.Map('map');

 var gsat = new OpenLayers.Layer.Google(
        "Google Satellite",
                sphericalMercator: true
        {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
    );

map.addControl(new OpenLayers.Control.LayerSwitcher()); 
        map.addLayers(gsat);
    // Google.v3 uses EPSG:900913 as projection, so we have to
    // transform our coordinates
    map.setCenter(new OpenLayers.LonLat(10.2, 48.9).transform(
        new OpenLayers.Projection("EPSG:4326"),
        map.getProjectionObject()
    ), 5);

        
}

    </script>
  </head>

  <body onload="init()">
    <h1 id="title">OpenLayers: Google Layer Example</h1>
    <div id="map" class="smallmap" style="width: 1500; height: 500"></div>
  </body>

</html>
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Geoserver-WMS-Layer-Does-Not-Display-tp5511643p5512204.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to