Effectively, thanks for the tip. But what i don't understand is the need of zooming. Normally, it should use directly the extension defined in GeoServer as it is the case for the other layers... Anyway, i will define the extension now.
Thanks Sylvain Arnd Wippermann wrote: > > 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im > Auftrag von springrider > Gesendet: Montag, 6. Oktober 2008 16:18 > An: [email protected] > 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 > [email protected] > http://openlayers.org/mailman/listinfo/users > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://www.nabble.com/Dispaly-of-WMS-works-in-GeoServer-but-not-with-Openlayers-tp19838876p19844416.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
