[OpenLayers-Users] Basic GeoServer OpenLayers map
ZAMap
scventer43 at telkomsa.net
Thu Apr 22 14:03:51 EDT 2010
Hi all
I'm trying to get a basic map displayed but keep getting bounds is null
error.
None of the suggestions (allOverlays: true) that I found works, most
probably because of other issues with my code/setup.
Code:
function init() {
var map = new OpenLayers.Map('map');
var layers = new OpenLayers.Layers.WMS(
"basic",
"http://localhost:8080/geoserver/wms",
{layers: 'topp:states'}
map.addLayers(layers);
map.zoomToMaxExtent();
}
My geoserver is working, I can request the map and other data from the
server. Any pointers to good tutorials are welcome.
Setup:
Ubuntu 9.10
GeoServer 2.0.1
Openlayers 2.8
I would appreciate any help.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Basic-GeoServer-OpenLayers-map-tp4946195p4946195.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list