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

Arnd Wippermann arnd.wippermann at web.de
Mon Oct 6 13:18:13 EDT 2008


Your maxextent are different

I tried http://193.43.36.238:8484/figis/Development/openlayers.html zooming
and there it was.

Arnd Wippermann 

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von springrider
Gesendet: Montag, 6. Oktober 2008 16:18
An: users at openlayers.org
Betreff: [OpenLayers-Users] Dispaly of WMS works in GeoServer but not with
Openlayers


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.72543840
4083228,120.50570869445805,75.15232534408568&styles=&Format=application/open
layers&request=GetMap&version=1.1.1&layers=fifao:SPECIES_DIST&width=800&heig
ht=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-Openlay
ers-tp19838876p19838876.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list