Hi, On Apr 21, 2010, at 15:37 , Florent Gravin wrote:
> Hi, > > i'm using param SLD like this : > > wmsLayer = new OpenLayers.Layer.WMS( 'layer', > 'http://localhost:8080/geoserver/wms', { > layers: 'ns:mylayer', > transparent: true, > sld: 'http://localhost/geo/mySLD.sld' > },{ > transitionEffect: 'resize',opacity:1 > } > ); > > it works fine, but only in the case where i specify full URL of the SLD > (absolute path with http://..........). > i would like to specify a SLD with a relative path, like sld: > '../geo/mySLD.sld' but it's not working > > what is the base folder specify by "./" in the SLD param ? how could i get it > with relative path ? This sld is loaded and processed by your wms, not by OpenLayers. So a relative path will only, if at all, work if your sld is on the filesystem of the wms. Regards, Andreas. > thanks for help > > flo > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users