[OpenLayers-Users] Dispaly of WMS works in GeoServer but not with Openlayers

springrider springrider at hotmail.com
Mon Oct 6 10:18:24 EDT 2008


Good afternoon

I have loaded a shapefile into Oracle Spatial.

The display in the demo section of GeoServer works correctly:
http://193.43.36.238:8484/geoserver/wms?bbox=-128.67246437072706,26.725438404083228,120.50570869445805,75.15232534408568&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:SPECIES_DIST&width=800&height=300&srs=EPSG:4326
but not when i make a call to the smae layer on Geoserver through OL in an
html page:
http://193.43.36.238:8484/figis/Development/openlayers.html

Html code:
var myMap = new
OpenLayers.Map('mapResourceFIRMS',{numZoomLevels:24,projection: "EPSG:4326"
});	
var wms_continent_background = new
OpenLayers.Layer.WMS("Background","/geoserver/wms?service=wms",
						{layers: 'fifao:UN_CONTINENT',format:'image/png'}               
								);

myMap.addLayer(wms_continent_background);
myMap.zoomToMaxExtent();

I really don't understand why it doesn't work for that layer. If i take
other layers present in my GeoServer, it works perfectly.
I don 't have any error message in the console. In the geoserver.log, it
just says that the png has been written...
If someone could help me , i would be very grateful, i am becoming crazy
about this layer...

Thanks a lot in advance

Sylvain

Technical environment: Geoserver 1.7.0 and OL 2.6
-- 
View this message in context: http://www.nabble.com/Dispaly-of-WMS-works-in-GeoServer-but-not-with-Openlayers-tp19838876p19838876.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list