As far as I know from MapServer, you can't use a relative url. example from http://mapserver.org/ogc/sld.html http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS <http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VERSION=1.1.1&Re quest=GetMap&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/w orld_testdata/tests/sld_tests/sld_line_simple.xml> &VERSION=1.1.1&Request=GetMap
&LAYERS=WorldGen_Outline&SLD=http://www2.dmsolutions.ca/msapps/world_testdat a/tests /sld_tests/sld_line_simple.xml Arnd _____ Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von Fernando Ribeiro Gesendet: Donnerstag, 12. August 2010 10:27 An: users@openlayers.org Betreff: [OpenLayers-Users] SLD over WMS Hi list, I am trying to change the default style of a WMS layer, with a new SLD style. So far I tried the "SLD:", direcly on layer options, and layer.mergeNewParams, without much success. Here's the layer I want to change: var fires_24h = new OpenLayers.Layer.WMS( "Fires 24h", "http://firefly.geog.umd.edu/wms/wms?", { layers: 'fires24', sld: './SLD/fires.sld', srs: 'EPSG:4326', format: 'image/png', tiled: 'true', transparent: true }, {isBaseLayer: false} ); Can anyone try and help me? Thank you! -- Fernando
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users