Skip to main content
1 of 5

New to OpenLayer - can't even get the example to work, please help

I have just started looking into OpenLayers and I can't seem to even get the example (http://docs.openlayers.org/library/introduction.html#putting-it-all-together) provided to work, I just get a blank screen.

Am I missing something really obvious? Here's the html I am trying to run. Many thanks!

OpenLayers Example var map = new OpenLayers.Map('map'); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} ); map.addLayer(wms); map.zoomToMaxExtent();