Hi,
 
it should work also with OL2.10. [1] is a little example to show this.
 
You can use SLD_BODY to request a WMS with the style description in the url
of the request, instead from a http reachable file.
 
Where can you get more information? Look at [2].
 
Arnd
 
[1]  <http://gis.ibbeck.de/OLClient/Examples/WMS%20World%20Map.html>
http://gis.ibbeck.de/OLClient/Examples/WMS%20World%20Map.html
[2]  <http://mapserver.org/ogc/sld.html> [http://mapserver.org/ogc/sld.html
 

  _____  

Von: Tonton [mailto:[email protected]] 
Gesendet: Dienstag, 7. Dezember 2010 10:02
An: Arnd Wippermann
Betreff: Re: [OpenLayers-Users] SLD=?



On Mon, Dec 6, 2010 at 10:49 PM, Arnd Wippermann <[email protected]>
wrote:


You can declare it as a param, because it is a WMS param:
 

var wms5 = new OpenLayers.Layer.WMS("Layername", 

    "http://192.168.12.60/cgi-bin/mapserv?map=/var/www/demo.map";, 
    {   layers: 'Layername' ,
        transparent: 'true',
        SLD:"http://urltomySLDfile.xml";
    }, 
    {   buffer: 0, 
        isBaseLayer: false, 
        noMagic: 'true'
    }
);



Great i try it whith hope first  but it is not working on my 2.10 Ol use

 

The same way you can use SLD_BODY.


you just fall! What is the use of SLD_BODY? in a mapfile? where to learn
about  ?
 

Arnd


thanks for you comment 
tonton

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to