Hi Frank

Thanks for your help.

I managed to solve the problem over the weekend. I used addLayers with a
single layer supplied. I changed this to addLayer and my map displayed. I
also added options to the map (maxResolution, maxExtent and projection).

Lesson, don't follow tutorials blindly.

But I still have a problem displaying a text layer.

var txtLayer = new OpenLayers.Layer.Text("text", {location:
"./txtfile.txt"});
map.addLayer(txtLayer);

When I view the Net tab in firebug FF is just sitting there trying to load
the file.
firebug net output: GET http://localhost/test/txtfile.txt

My txtfile.txt is tab separated.

Any suggestions?

Steven
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Basic-GeoServer-OpenLayers-map-tp4946195p4961293.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to