[OpenLayers-Dev] page does not show any thing

mkabeer mkabeer at tamimicg.com
Mon Jul 13 10:47:52 EDT 2009


Dear All,

i am new to open layers and geoserver, as per documents i installed
geoserver and tested its working
then i created following html page and copied as 1-basics.html and copied
into /geoserver/1-basics.html
and running through the firefox but nothing is displaying. page is empty.
here is the following code

<html>
    <head>
    <script src="openlayers/lib/OpenLayers.js"></script>
        <script type="text/javascript">

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

                var wms = new OpenLayers.Layer.WMS(
                    "Blue Marble",
                    "http://localhost/geoserver/wms",
                    {layers: 'world'}
                );

                map.addLayers([wms]);
                map.zoomToMaxExtent();
            }

        </script>
    </head>

    <body onload="init()">
        <div id="map"  style="width: 600px; height: 300px"></div>
    </body>
</html>


some one please help me in this 

Thanks
Kabeer
-- 
View this message in context: http://n2.nabble.com/page-does-not-show-any-thing-tp3250852p3250852.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.



More information about the Dev mailing list