[OpenLayers-Users] ArcIMS thematic mapping example on Mapserver
Arnd Wippermann
arnd.wippermann at web.de
Fri Apr 9 08:42:32 EDT 2010
Hi,
To get an example of a sld file, you can get the styles of your mapfile
using the Request=GetStyles. As response you should get a sld file which
describes the styles you have defined in your mapfile for your layers. If
you have used classes, then they should appear as rules in the sld file.
Have also a look at the mapserver documentation
http://mapserver.org/ogc/sld.html.
An own example to change the styles on the fly by using the parameter
SLD_BODY of a WMS request.
http://gis.ibbeck.de/OLClient/examples/wms_sld_world.asp
Arnd
-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von sunny74
Gesendet: Freitag, 9. April 2010 12:27
An: users at openlayers.org
Betreff: Re: [OpenLayers-Users] ArcIMS thematic mapping example on Mapserver
Hi Bart van den,
I have found one way of doing the Thematic map i.e by hardcoding the style
in the map file corresponding to each feature.
That is the easiest way of doing it.
But that is not what I want to do.
I want to apply the styles to the features at run time and also be able to
manipulate the styles of the features at run time.
The SLD documents you sent only talks about manipulating the layers but not
the features within it.
Now I want to know the following:
1) How to access the map object and within that the layer object,class
objects using OL?
2) Apply styles to class objects within a layer?
Thanks for kind reply.
--
View this message in context:
http://n2.nabble.com/ArcIMS-thematic-mapping-example-on-Mapserver-tp4871120p
4876324.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