Hello!!! Sorry for my English, I'm new in OpenLayer and I have a problem to
render(view) a map.
This is my html page:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="http://openlayers.org/api/OpenLayers.js";></script>
</head>
<body>
        
    <div style="width:100%; height:100%" id="map"></div>
    <script defer="defer" type="text/javascript">
        
                var map = new OpenLayers.Map('map');
                
                var wms = new OpenLayers.Layer.WMS("gtest2", 
                        "http://localhost:8080/geoserver/wms",{
                        srs:'EPSG:2000',
                        styles:'',
                        format:"application/openlayers",
                        layers: 'cite:gtest2',
                        });
                map.addLayer(wms);
                map.zoomToMaxExtent();
                alert(wms.getURL(new OpenLayers.Bounds(map)));
        </script>
</body>
</html>

When i run this code, i have:

http://n2.nabble.com/file/n3829292/error.jpg 



-- 
View this message in context: 
http://n2.nabble.com/bbox-Nan-null-null-null-tp3829292p3829292.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to